code: def _load_dataset_ids(
      data_dir: types.PathType,
  ) -> Tuple[List[str], List[str]]:
      """Loads dataset IDs."""
      dataset_json_path = gpath.GPath(data_dir, "dataset.json")
      logging.info("*** Loading dataset IDs from %s", dataset_json_path)
      with dataset_json_path.open("r") as f:
          dataset_json = json.load(f)
          train_ids = dataset_json["train_ids"]
          val_ids = dataset_json["val_ids"]
  
      train_ids = [str(i) for i in train_ids]
      val_ids = [str(i) for i in val_ids]
  
      return train_ids, val_ids
  
imports: import json
  from typing import List, Tuple
  from absl import logging
  import cv2
  import numpy
  from nerfies import gpath
  from nerfies import types
  from nerfies import utils
  from nerfies.datasets import core
label_desc: Use image node_id 3 for calling a global function with example usage: _load_dataset_ids(data_dir) and returns: train_ids,  val_ids