code: def set_availables_tmp(
      new_ds_types: Iterable[DatasetType],
  ) -> Iterator[None]:
      """Contextmanager/decorator version of `set_availables`."""
      old_ds_types = set(_current_available)
      try:
          set_availables(new_ds_types)
          yield
      finally:
          set_availables(old_ds_types)
  
file_path: datasets/tensorflow_datasets/core/visibility.py
imports: import contextlib
  import enum
  import pathlib
  from typing import Iterable, Iterator, List
  from absl import app
label_desc: Use image node_id 3 for calling a global function with example usage: set_availables_tmp(new_ds_types) without return types