code: def resize(self, height, width):
          
          return self.client.api.resize(self.id, height, width)
docs: Resize the tty session.
  
          Args:
              height (int): Height of tty session
              width (int): Width of tty session
  
          Raises:
              :py:class:`docker.errors.APIError`
                  If the server returns an error.