code: def walk_from_list(cls, files):
          
          tree = cls.list_to_tree(files)
  
          def walk(directory, **kwargs):
              return cls.tree_walk(directory, tree)
  
          return walk
docs: A function that mimics :func:`os.walk()` by simulating a directory with
          the list of files passed as an argument.
  
          :param files: A list of file paths
          :return: A function that mimics :func:`os.walk()` walking a directory
                   containing only the files listed in the argument