def METHOD_NAME(content, baseurl, destpath, **kwargs):
    page = BeautifulSoup(content, "html.parser")
    for image in page.find_all("img"):
        relpath, _ = download_file(
            make_fully_qualified_url(image["src"]), destpath, request_fn=make_request
        )
        image["src"] = relpath
    return str(page)