def METHOD_NAME(file_pattern, params):
  """Creates an input function from files matching the given pattern."""
  return inputs.get_input_fn(
      file_pattern=os.path.join(params.input_dir, file_pattern),
      batch_size=params.batch_size)