code: def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False):
      names = _listdir(dirname, dir_fd, dironly)
      if include_hidden or not _ishidden(pattern):
          names = (
              x for x in names if include_hidden or not _ishidden(x)
          )
      return fnmatch.filter(names, pattern)
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: _glob1(dirname, pattern, dir_fd, dironly, include_hidden) and returns: fnmatch