class_docstr: Car Images dataset.
class_docstr_tok: ["Car","Images","dataset","."]
docstr: Define the train and test split.
docstr_tok: ["Define","the","train","and","test","split","."]
code: def _split_generators(self, dl_manager):
      """Define the train and test split."""
      output_files = dl_manager.download_and_extract(
          {
              "train": urllib.parse.urljoin(_URL, "cars_train.tgz"),
              "test": urllib.parse.urljoin(_URL, "cars_test.tgz"),
              "extra": _EXTRA_URL,
              "test_annos": urllib.parse.urljoin(
                  _URL, "cars_test_annos_withlabels.mat"
              ),
          }
      )
  
      return [
          tfds.core.SplitGenerator(
              name="train",
              gen_kwargs={
                  "split_name": "train",
                  "data_dir_path": os.path.join(
                      output_files["train"], "cars_train"
                  ),
                  "data_annotations_path": os.path.join(
                      output_files["extra"],
                      os.path.join("devkit", "cars_train_annos.mat"),
                  ),
              },
          ),
          tfds.core.SplitGenerator(
              name="test",
              gen_kwargs={
                  "split_name": "test",
                  "data_dir_path": os.path.join(
                      output_files["test"], "cars_test"
                  ),
                  "data_annotations_path": output_files["test_annos"],
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/image_classification/cars196.py
imports: import os
  import urllib
  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 Cars196 obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list