code: def get_glob(path):
      
      if isinstance(path, str):
          return glob.glob(path, recursive=True)
      if isinstance(path, os.PathLike):
          # hilariously enough, glob doesn't like path-like. Gotta be str.
          return glob.glob(str(path), recursive=True)
      elif isinstance(path, (list, tuple)):
          # each glob returns a list, so chain all the lists into one big list
          return list(chain.from_iterable(
              glob.glob(str(p), recursive=True) for p in path))
      else:
          raise TypeError("path should be string, path-like or a list. Instead, "
                          f"it's a {type(path)}")
docs: Process the input path, applying globbing and formatting.
  
      Do note that this will returns files AND directories that match the glob.
  
      No tilde expansion is done, but *, ?, and character ranges expressed with
      [] will be correctly matched.
  
      Escape all special characters ('?', '*' and '['). For a literal match, wrap
      the meta-characters in brackets. For example, '[?]' matches the character
      '?'.
  
      If passing in an iterable of paths, will expand matches for each path in
      the iterable. The function will return all the matches for each path
      glob expression combined into a single list.
  
      Args:
          path: Path-like string, or iterable (list or tuple ) of paths.
  
      Returns:
          Combined list of paths found for input glob.