<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list(self, *args, **kwargs):
 """ 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 :py:class:`Node` objects. Raises: :py:class:`docker.errors.APIError` If the server returns an error. Example: """

        return [
            self.prepare_model(n)
            for n in self.client.api.nodes(*args, **kwargs)
        ]