def METHOD_NAME(source, parser=None, base_url=None, forbid_dtd=False, forbid_entities=True):  # pylint: disable=missing-function-docstring
    if parser is None:
        parser = getDefaultParser()
    elementtree = _etree.METHOD_NAME(source, parser, base_url=base_url)
    check_docinfo(elementtree, forbid_dtd, forbid_entities)
    return elementtree