class_docstr: A dict-like wrapper around :class:`Client` dataset methods.
  
  Parameters
  ----------
  client : distributed.client.Client
class_docstr_tok: ["A","dict-like","wrapper","around",":","class",":","`","Client","`","dataset","methods",".","Parameters","--","--","--","--","--","client",":","distributed.client.Client"]
code: def __aiter__(self):
      if not self._client.asynchronous:
          raise TypeError(
              "Can't invoke 'async for' on client.datasets when client is "
              "synchronous; use iter() or 'for' instead"
          )
  
      async def _():
          for key in await self._client.list_datasets():
              yield key
  
      return _()
  
file_path: distributed/distributed/publish.py
imports: from __future__ import annotations
  from collections.abc import MutableMapping
  from dask.utils import stringify
  from distributed.utils import log_errors
label_desc: Use image node_id 6 for calling the Datasets obj's underlying member method code with example usage: obj.__aiter__() and returns: _