code: def _urljoin(base, url):
      
      parsed = urlparse(base)
      scheme = parsed.scheme
      return urlparse(
          urljoin(parsed._replace(scheme='http').geturl(), url)
      )._replace(scheme=scheme).geturl()
docs: Join relative URLs to base URLs like urllib.parse.urljoin but support
      arbitrary URIs (esp. 'http+unix://').