code: def _load_nightly_dict(
      version_path: tfds.typing.PathLike,
  ) -> NightlyDict:
      """Loads (and caches) the nightly dict."""
      with tf.io.gfile.GFile(os.fspath(version_path), "r") as f:
          stable_versions = f.read().splitlines()
  
      # Build the `full_names_dict['dataset']['config']['version']` for both
      # nightly and stable version
      registered_ds = _full_names_to_dict(
          tfds.core.load.list_full_names()
      )
      stable_version_ds = _full_names_to_dict(stable_versions)
  
      # Nightly versions are `registered - stable`
      return _build_nightly_dict(registered_ds, stable_version_ds)
  
imports: import collections
  import dataclasses
  import json
  import os
  import textwrap
  from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
  import tensorflow_datasets
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: _load_nightly_dict(version_path) and returns: _build_nightly_dict