'Resize the tty session.
Args:
container (str or dict): The container to resize
height (int): Height of tty session
width (int): Width of tty session
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

@utils.check_resource('container')
def resize(self, container, height, width):

    params = {'h': height, 'w': width}
    url = self._url('/containers/{0}/resize', container)
    res = self._post(url, params=params)
    self._raise_for_status(res)
