class_docstr: Food-101 Images dataset.
docstr: Define Splits.
docstr_tok: ["Define","Splits","."]
code: def _split_generators(self, dl_manager):
      """Define Splits."""
  
      dl_path = dl_manager.download_and_extract(_BASE_URL)
      meta_path = os.path.join(dl_path, "food-101", "meta")
      image_dir_path = os.path.join(dl_path, "food-101", "images")
  
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "json_file_path": os.path.join(
                      meta_path, "train.json"
                  ),
                  "image_dir_path": image_dir_path,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "json_file_path": os.path.join(
                      meta_path, "test.json"
                  ),
                  "image_dir_path": image_dir_path,
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/image_classification/food101.py
imports: import json
  import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Food101 obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list