code: def from_url(cls, url, **kwargs):
          
          url = urllib3.util.parse_url(url)
          if url.host:
              kwargs.setdefault('host', url.host)
  
          if url.port:
              kwargs.setdefault('port', url.port)
  
          if url.scheme == 'https':
              kwargs.setdefault('connection_class', urllib3.HTTPSConnectionPool)
  
          return cls(**kwargs)
docs: Create a client from a url.