code: def fromfile(cls, filepath, url):
      with open(filepath) as html_file:
          html = html_file.read()
          return cls(html, url)
  
file_path: neupy/site/search-index/htmltools.py
imports: import os
  from collections import namedtuple
  from bs4 import BeautifulSoup
  from six.moves.urllib.parse import urljoin, urlparse
  from webgraph import Link
label_desc: Use image node_id 2 for calling the ParseHTML obj's underlying member method code with example usage: obj.fromfile(cls, filepath, url) and returns: cls