def METHOD_NAME(pattern):
  if io_mode == BackendMode.DEFAULT:
    return [
        path.rstrip("/") for path in glob_module.METHOD_NAME(pattern, recursive=False)
    ]
  elif io_mode == BackendMode.TF:
    return gfile.METHOD_NAME(pattern)
  else:
    raise ValueError("Unknown IO Backend Mode.")