code: def train_input_fn(params):
    
    file_pattern = os.path.join(getattr(params, "data_dir", ""), "*encoded-train*")
    return _read_and_batch_from_files(
        file_pattern, params.batch_size, params.max_length, params.num_cpu_cores,
        shuffle=True, repeat=params.repeat_dataset)
docs: Load and return dataset of batched examples for use during training.