'List images. Similar to the ``docker images`` command.
Args:
name (str): Only show images belonging to the repository ``name``
quiet (bool): Only return numeric IDs as a list.
all (bool): Show intermediate image layers. By default, these are
filtered out.
filters (dict): Filters to be processed on the image list.
Available filters:
- ``dangling`` (bool)
- ``label`` (str): format either ``key`` or ``key=value``
Returns:
(dict or list): A list if ``quiet=True``, otherwise a dict.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

def images(self, name=None, quiet=False, all=False, viz=False, filters=None):

    if viz:
        if (utils.compare_version('1.7', self._version) >= 0):
            raise Exception('Viz    output    is    not    supported    in    API    >=    1.7!')
        return self._result(self._get(self._url('images/viz')))
    params = {'filter': name, 'only_ids': (1 if quiet else 0), 'all': (1 if all else 0)}
    if filters:
        params['filters'] = utils.convert_filters(filters)
    res = self._result(self._get(self._url('/images/json'), params=params), True)
    if quiet:
        return [x['Id'] for x in res]
    return res
