code: def reconnect(self):
          
          if self._auth_method is "userpass":
              self._mgr = manager.connect(host=self._conn[0],
                                          port=self._conn[1],
                                          username=self._auth[0],
                                          password=self._auth[1],
                                          hostkey_verify=self._hostkey_verify)
          elif self._auth_method is "key":
              self._mgr = manager.connect(host=self._conn[0],
                                          port=self._conn[1],
                                          username=self._auth[0],
                                          key_filename=self._auth_key,
                                          hostkey_verify=self._hostkey_verify)
          else:
              raise ValueError("auth_method incorrect value.")
          self._mgr.timeout = 600
  
          return True
docs: Reconnect session with device.
  
          Args:
              None
  
          Returns:
              bool: True if reconnect succeeds, False if not.
  
          Raises:
              None