code: def iter_collections_documentation(
      collection_names: Optional[List[str]] = None,
  ) -> Iterator[CollectionDocumentation]:
      logging.info("Retrieving dataset collection names...")
      collection_names = collection_names or sorted(
          tfds.list_dataset_collections()
      )
      for collection_name in collection_names:
          yield _document_single_collection(name=collection_name)
      print("All collections documentations generated!")
  
imports: from concurrent import futures
  import dataclasses
  import functools
  from typing import Any, Iterator, List, Optional, Set, Type
  from absl import logging
  import tensorflow_datasets
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.scripts.documentation import collection_markdown_builder
  from tensorflow_datasets.scripts.documentation import dataset_markdown_builder
  from tensorflow_datasets.scripts.documentation import doc_utils
  import tqdm
label_desc: Use image node_id 12 for calling a global function with example usage: iter_collections_documentation(collection_names) without return types