code: def glob(glob_pattern, directoryname):
      '''
      Walks through a directory and its subdirectories looking for files matching
      the glob_pattern and returns a list=[].
  
      :param directoryname: Any accessible folder name on the filesystem.
      :param glob_pattern: A string like "*.txt", which would find all text files.
      :return: A list=[] of absolute filepaths matching the glob pattern.
      '''
      matches = []
      for root, dirnames, filenames in os.walk(directoryname):
          for filename in fnmatch.filter(filenames, glob_pattern):
              absolute_filepath = os.path.join(root, filename)
              matches.append(absolute_filepath)
      return matchef glob(glob_pattern, directoryname):
      '''
      Walks through a directory and its subdirectories looking for files matching
      the glob_pattern and returns a list=[].
  
      :param directoryname: Any accessible folder name on the filesystem.
      :param glob_pattern: A string like "*.txt", which would find all text files.
      :return: A list=[] of absolute filepaths matching the glob pattern.
      '''
      matches = []
      for root, dirnames, filenames in os.walk(directoryname):
          for filename in fnmatch.filter(filenames, glob_pattern):
              absolute_filepath = os.path.join(root, filename)
              matches.append(absolute_filepath)
      return matches
docs: Walks through a directory and its subdirectories looking for files matching
      the glob_pattern and returns a list=[].
  
      :param directoryname: Any accessible folder name on the filesystem.
      :param glob_pattern: A string like "*.txt", which would find all text files.
      :return: A list=[] of absolute filepaths matching the glob pattern.