code: def _glob0(dirname, basename, dironly):
      if not basename:
          # `os.path.split()` returns an empty basename for paths ending with a
          # directory separator.  'q*x/' should match only directories.
          if oss_isdir(dirname):
              return [basename]
      else:
          if oss_exists(os.path.join(dirname, basename)):
              return [basename]
      return []
  
file_path: mars/mars/lib/filesystem/_oss_lib/glob.py
imports: import fnmatch
  import os
  import re
  from .common import oss_exists, oss_isdir, oss_scandir
label_desc: Use image node_id 5 for calling a global function with example usage: _glob0(dirname, basename, dironly) and returns: list, list, list