class_docstr: CIFAR-10 dataset.
class_docstr_tok: ["CIFAR-10","dataset","."]
code: def __init__(self, data_path, split):
      assert pathmgr.exists(
          data_path
      ), "Data path '{}' not found".format(data_path)
      splits = ["train", "test"]
      assert (
          split in splits
      ), "Split '{}' not supported for cifar".format(split)
      logger.info("Constructing CIFAR-10 {}...".format(split))
      self._data_path, self._split = data_path, split
      self._inputs, self._labels = self._load_data()
  
file_path: pycls/pycls/datasets/cifar10.py
imports: import os
  import pickle
  import numpy
  import pycls.core.logging
  import torch.utils.data
  from pycls.core.config import cfg
  from pycls.core.io import pathmgr
label_desc: Use image node_id 1 to create a new Cifar10 object from inherited base classes: torch.utils.data with example: obj = Cifar10(data_path, split)