code: def set_availables(new_ds_types: Iterable[DatasetType]) -> None:
      """Overwrites the current visibility permissions.
  
      Calling this function will affect the returned value of
      `tfds.list_builders`,...
  
      Args:
        new_ds_types: New ds types.
      """
      _current_available.clear()
      _current_available.update(new_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 1 for calling a global function with example usage: set_availables(new_ds_types) without return types