def METHOD_NAME(vd, p):
    bs4 = vd.importExternal('bs4', 'beautifulsoup4')
    vd.enable_requests_cache()
    if p.is_url():
        return HtmlDocsSheet(p.name, source=p, urls=[p.given])
    else:
        return HtmlElementsSheet(p.name, source=p, elements=None)