code: def glob1(dirname, pattern):
      if not dirname:
          if isinstance(pattern, bytes):
              dirname = os.curdir.encode("ASCII")
          else:
              dirname = os.curdir
      try:
          names = os.listdir(dirname)
      except OSError:
          return []
      return fnmatch.filter(names, pattern)
  
file_path: catboost/contrib/python/setuptools/py2/setuptools/glob.py
imports: import os
  import re
  import fnmatch
label_desc: Use image node_id 4 for calling a global function with example usage: glob1(dirname, pattern) and returns: fnmatch, list