code: def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False):
      if basename:
          if _lexists(_join(dirname, basename), dir_fd):
              return [basename]
      else:
          # `os.path.split()` returns an empty basename for paths ending with a
          # directory separator.  'q*x/' should match only directories.
          if _isdir(dirname, dir_fd):
              return [basename]
      return []
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: _glob0(dirname, basename, dir_fd, dironly, include_hidden) and returns: list, list, list