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 __iter__(self):
      if self._client.asynchronous:
          raise TypeError(
              "Can't invoke iter() or 'for' on client.datasets when client is "
              "asynchronous; use 'async for' instead"
          )
      yield from self._client.list_datasets()
  
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 5 for calling the Datasets obj's underlying member method code with example usage: obj.__iter__() without return types