'List swarm nodes.
Args:
filters (dict): Filters to process on the nodes list. Valid
filters: ``id``, ``name``, ``membership`` and ``role``.
Default: ``None``
Returns:
A list of dictionaries containing data about each swarm node.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.'

@utils.minimum_version('1.24')
def nodes(self, filters=None):

    url = self._url('/nodes')
    params = {}
    if filters:
        params['filters'] = utils.convert_filters(filters)
    return self._result(self._get(url, params=params), True)
