code: def glob(pattern):
      if io_mode == BackendMode.DEFAULT:
          return [
              path.rstrip("/")
              for path in glob_module.glob(pattern, recursive=False)
          ]
      elif io_mode == BackendMode.TF:
          return gfile.glob(pattern)
      else:
          raise ValueError("Unknown IO Backend Mode.")
  
imports: import contextlib
  import glob
  import importlib
  import os
  import shutil
  from enum import Enum
  from absl import logging
  from .None import errors
label_desc: Use image node_id 10 for calling a global function with example usage: glob(pattern) and returns: unknown, gfile