def METHOD_NAME(path):
  if io_mode == BackendMode.DEFAULT:
    return os.path.METHOD_NAME(path)
  elif io_mode == BackendMode.TF:
    return gfile.METHOD_NAME(path)
  else:
    raise ValueError("Unknown IO Backend Mode.")