code: def glob(
      pathname,
      *,
      root_dir=None,
      dir_fd=None,
      recursive=False,
      include_hidden=False,
  ):
      """Return a list of paths matching a pathname pattern.
  
      The pattern may contain simple shell-style wildcards a la
      fnmatch. Unlike fnmatch, filenames starting with a
      dot are special cases that are not matched by '*' and '?'
      patterns by default.
  
      If `include_hidden` is true, the patterns '*', '?', '**'  will match hidden
      directories.
  
      If `recursive` is true, the pattern '**' will match any files and
      zero or more directories and subdirectories.
      """
      return list(
          iglob(
              pathname,
              root_dir=root_dir,
              dir_fd=dir_fd,
              recursive=recursive,
              include_hidden=include_hidden,
          )
      )
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: glob(pathname) and returns: list