def METHOD_NAME(
    arg: str,
    msg="Expected a valid URI, not {arg!r}",
) -> None:
    if not isinstance(arg, str):
        raise exceptions.ValidationError(msg.format(arg=arg))
    if urllib.parse.urlparse(arg).scheme == "":
        raise exceptions.ValidationError(msg.format(arg=arg))