'Get a tarball of an image. Similar to the ``docker save`` command.
Args:
image (str): Image name to get
Returns:
(urllib3.response.HTTPResponse object): The response from the
daemon.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
Example:
>>> image = cli.get_image("fedora:latest")
>>> f = open(\'/tmp/fedora-latest.tar\', \'w\')
>>> f.write(image.data)
>>> f.close()'

@utils.check_resource('image')
def get_image(self, image):

    res = self._get(self._url('/images/{0}/get', image), stream=True)
    self._raise_for_status(res)
    return res.raw
