code: def timeout(self, timeout):
          
  
          if timeout is None:
              self._timeout = None  # no timeout
              return
          self._timeout = float(timeout)
docs: Set request timeout in seconds (or fractions of a second)