code: async def auto_detect_at_host(cls, host, ports, auth):
          '''Try to detect a SOCKS proxy on a host on one of the ports.
  
          Calls auto_detect_address for the ports in order.  Returning a SOCKSProxy does not
          mean it is functioning - for example, it may have no network connectivity.
  
          If no proxy is detected return None.
          '''
          for port in ports:
              proxy = await cls.auto_detect_at_address(NetAddress(host, port), auth)
              if proxy:
                  return proxy
  
          return Nonync def auto_detect_at_host(cls, host, ports, auth):
          '''Try to detect a SOCKS proxy on a host on one of the ports.
  
          Calls auto_detect_address for the ports in order.  Returning a SOCKSProxy does not
          mean it is functioning - for example, it may have no network connectivity.
  
          If no proxy is detected return None.
          '''
          for port in ports:
              proxy = await cls.auto_detect_at_address(NetAddress(host, port), auth)
              if proxy:
                  return proxy
  
          return None
docs: Try to detect a SOCKS proxy on a host on one of the ports.
  
          Calls auto_detect_address for the ports in order.  Returning a SOCKSProxy does not
          mean it is functioning - for example, it may have no network connectivity.
  
          If no proxy is detected return None.