code: def set_proxy(proxy_url, transport_proxy=None):
      
      global proxy, PYPI_URL
      PYPI_URL = proxy_url
      proxy = xmlrpc.ServerProxy(
          proxy_url,
          transport=RequestsTransport(proxy_url.startswith('https://')),
          allow_none=True)
docs: Create the proxy to PyPI XML-RPC Server