class_docstr: ImageNet Distribution Shift Dataset.
  
  This base class supports ImageNet out-of-distribution datasets. The class names for
  datasets are a subset of ImageNet. The `__getitem__` method projects the
  labels to the classes of ImageNet to allow zero-shot evaluation.
  
  Args:
      opts: An argparse.Namespace instance.
docstr: Verify the dataset is correctly initialized. Also called in testing.
code: def post_init_checks(self) -> None:
      """Verify the dataset is correctly initialized. Also called in testing."""
      if self.is_training:
          raise Exception(
              "{} can only be used for evaluation".format(
                  self.__class__.__name__
              )
          )
  
file_path: ml-cvnets/data/datasets/classification/base_imagenet_shift_dataset.py
imports: import argparse
  from typing import Any, Dict, Tuple
  from data.datasets.classification.base_image_classification_dataset import BaseImageClassificationDataset
label_desc: Use image node_id 2 for calling the BaseImageNetShiftDataset obj's underlying member method code with example usage: obj.post_init_checks() without return types