class_docstr: ImageNet dataset.
class_docstr_tok: ["ImageNet","dataset","."]
code: def __init__(self, data_path, split):
      assert os.path.exists(
          data_path
      ), "Data path '{}' not found".format(data_path)
      splits = ["train", "val"]
      assert (
          split in splits
      ), "Split '{}' not supported for ImageNet".format(split)
      logger.info("Constructing ImageNet {}...".format(split))
      self._data_path, self._split = data_path, split
      self._construct_imdb()
  
file_path: pycls/pycls/datasets/imagenet.py
imports: import os
  import re
  import cv2
  import numpy
  import pycls.core.logging
  import pycls.datasets.transforms
  import torch.utils.data
  from pycls.core.config import cfg
label_desc: Use image node_id 1 to create a new ImageNet object from inherited base classes: torch.utils.data with example: obj = ImageNet(data_path, split)