code: def set_timeout(self, network_timeout):
          
          # Do nothing if attempting to set the same timeout twice.
          if network_timeout == self._network_timeout:
              return
          self._network_timeout = network_timeout
          self._disconnect()
docs: Set the timeout for existing and future Clients.
  
          Close all current connections. This will cause future operations to
          create new Clients with the network_timeout passed through
          socketTimeoutMS optional parameter.
  
          Args:
              network_timeout: The new value in milliseconds for the timeout.