code: def auto_detect(self, value):
          
          if isinstance(value, bool):
              if self.autodetect is not value:
                  self._verify_proxy_type_compatibility(ProxyType.AUTODETECT)
                  self.proxyType = ProxyType.AUTODETECT
                  self.autodetect = value
          else:
              raise ValueError("Autodetect proxy value needs to be a boolean")
docs: Sets autodetect setting.
  
          :Args:
           - value: The autodetect value.