code: def fromFile(path_or_buffer):
          
          return TOC.fromLatex(open(path_or_buffer).read() 
                               if isinstance(path_or_buffer, str)
                               else path_or_buffer)
docs: Creates abstraction using path to file
  
          :param str path_or_buffer: path to tex file or buffer
          :return: TreeOfContents object