class_docstr: The Abstraction and Reasoning Corpus (ARC).
docstr: Downloads the data, defines the splits and returns SplitGenerators.
docstr_tok: ["Downloads","the","data",",","defines","the","splits","and","returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Downloads the data, defines the splits and returns SplitGenerators."""
  
      # dl_manager is a tfds.download.DownloadManager that can be used to
      # download and extract URLs
      extracted_dir = dl_manager.download_and_extract(
          self.builder_config.download_url
      )
      extract_subdir = [
          path
          for path in tf.io.gfile.listdir(extracted_dir)
          if path.startswith("fchollet-ARC-")
      ]
      if len(extract_subdir) != 1:
          raise ValueError("Unexpected ARC archive format")
      data_dir = os.path.join(extracted_dir, extract_subdir[0], "data")
      train_dir = os.path.join(data_dir, "training")
      test_dir = os.path.join(data_dir, "evaluation")
  
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "directory": train_dir,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.TEST,
              gen_kwargs={
                  "directory": test_dir,
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/datasets/arc/arc_dataset_builder.py
imports: import json
  import os
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list