def is_absolute_uri(url: ParseResult) -> bool:
    '\n    Returns True if the parsed result is an "absolute URI".\n\n    We define an "absolute URI" as containing at mimimum a **scheme** and an\n    **host** (a.k.a., an authority).\n\n    It must contain SH according to the nomenclature defined in this proposal:\n    https://gist.github.com/andrewdotn/eebeaa60d48c3c0f6f9fc75f0ede8d03#proposal\n\n    Examples of absolute URIs:\n        [SH  ]  https://example.com\n        [SHP ]  https://example.com/\n        [SHPF]  https://example.com/foo/cat.gif\n\n    What are NOT absolute URIs:\n        [   F]  cat.gif\n        [  P ]  /\n        [  PF]  /foo/cat.gif\n        [ HPF]  //example.com/foo/cat.gif†\n        [S  F]  https:cat.gif (uncommon)\n        [S PF]  https:/foo/cat.gif (uncommon)\n\n    †: This is called a "network-path reference, and relies on inferring the scheme\n       based on an existing base URI. For our purposes, this is not "absolute" enough!\n       Source: https://tools.ietf.org/html/rfc3986#section-4.2\n\n    '
    if (url.scheme and url.netloc):
        return True
    return False
Returns True if the parsed result is an "absolute URI".

We define an "absolute URI" as containing at mimimum a **scheme** and an
**host** (a.k.a., an authority).

It must contain SH according to the nomenclature defined in this proposal:
https://gist.github.com/andrewdotn/eebeaa60d48c3c0f6f9fc75f0ede8d03#proposal

Examples of absolute URIs:
    [SH  ]  https://example.com
    [SHP ]  https://example.com/
    [SHPF]  https://example.com/foo/cat.gif

What are NOT absolute URIs:
    [   F]  cat.gif
    [  P ]  /
    [  PF]  /foo/cat.gif
    [ HPF]  //example.com/foo/cat.gif†
    [S  F]  https:cat.gif (uncommon)
    [S PF]  https:/foo/cat.gif (uncommon)

†: This is called a "network-path reference, and relies on inferring the scheme
   based on an existing base URI. For our purposes, this is not "absolute" enough!
   Source: https://tools.ietf.org/html/rfc3986#section-4.2
def is_absolute_uri(url: ParseResult) -> bool:
    '\n    Returns True if the parsed result is an "absolute URI".\n\n    We define an "absolute URI" as containing at mimimum a **scheme** and an\n    **host** (a.k.a., an authority).\n\n    It must contain SH according to the nomenclature defined in this proposal:\n    https://gist.github.com/andrewdotn/eebeaa60d48c3c0f6f9fc75f0ede8d03#proposal\n\n    Examples of absolute URIs:\n        [SH  ]  https://example.com\n        [SHP ]  https://example.com/\n        [SHPF]  https://example.com/foo/cat.gif\n\n    What are NOT absolute URIs:\n        [   F]  cat.gif\n        [  P ]  /\n        [  PF]  /foo/cat.gif\n        [ HPF]  //example.com/foo/cat.gif†\n        [S  F]  https:cat.gif (uncommon)\n        [S PF]  https:/foo/cat.gif (uncommon)\n\n    †: This is called a "network-path reference, and relies on inferring the scheme\n       based on an existing base URI. For our purposes, this is not "absolute" enough!\n       Source: https://tools.ietf.org/html/rfc3986#section-4.2\n\n    '
    if (url.scheme and url.netloc):
        return True
    return False