human
Complete this python program:
def make_links_absolute(root, base_url):
assistant
#Here is the Python program you requested.

    """Make all links in the document absolute, given the
    ``base_url`` for the document (the full URL where the document
    came from)
    """
    def link_repl(href):
        return urljoin(base_url, href)
    rewrite_links(root, link_repl)