class_docstr: DatasetBuilder for gref dataset.
code: def _split_generators(self, dl_manager):
      coco_image_dir = dl_manager.manual_dir / "coco_train2014"
      gref_aligned_json_train = (
          dl_manager.manual_dir
          / "google_refexp_train_201511_coco_aligned_catg.json"
      )
      gref_aligned_json_val = (
          dl_manager.manual_dir
          / "google_refexp_val_201511_coco_aligned_catg.json"
      )
      # Specify the splits
      return {
          tfds.Split.TRAIN: self._generate_examples(
              coco_image_dir,
              gref_aligned_json_train,
          ),
          tfds.Split.VALIDATION: self._generate_examples(
              coco_image_dir,
              gref_aligned_json_val,
          ),
      }
  
file_path: datasets/tensorflow_datasets/vision_language/gref/gref.py
imports: from __future__ import annotations
  import collections
  import json
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Gref obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict