Write code to implement Autoloader in Databricks.
Asked in the Technical interview stage. Implement autoload_file_batches(batches), where batches is a list of file batches. Each file has a unique path identifier and a list of dictionary records. Process files in order, ignore repeated paths, and return all records from newly discovered files. The output must include every field seen across all records, using None when a record lacks a field.
def autoload_file_batches(batches):