'List networks. Similar to the ``docker networks ls`` command.
Args:
names (:py:class:`list`): List of names to filter by.
ids (:py:class:`list`): List of ids to filter by.
Returns:
(list of :py:class:`Network`) The networks on the server.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

def list(self, *args, **kwargs):

    resp = self.client.api.networks(*args, **kwargs)
    return [self.prepare_model(item) for item in resp]
