class_docstr: ImageNetR dataset, a distribution shift of ImageNet.
  
  ImageNet-R(endition) contains art, cartoons, deviantart, graffiti, embroidery,
  graphics, origami, paintings, patterns, plastic objects, plush objects, sculptures,
  sketches, tattoos, toys, and video game renditions of ImageNet classes.
  
  @article{hendrycks2021many,
  title={The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution
  Generalization},
  author={Dan Hendrycks and Steven Basart and Norman Mu and Saurav Kadavath and Frank
  Wang and Evan Dorundo and Rahul Desai and Tyler Zhu and Samyak Parajuli and Mike Guo
  and Dawn Song and Jacob Steinhardt and Justin Gilmer},
  journal={ICCV},
  year={2021}
  }
docstr: Initialize ImageNetR.
docstr_tok: ["Initialize","ImageNetR","."]
code: def __init__(
      self,
      opts: argparse.Namespace,
      *args,
      **kwargs,
  ) -> None:
      """Initialize ImageNetR."""
      BaseImageNetShiftDataset.__init__(
          self, opts=opts, *args, **kwargs
      )
  
imports: import argparse
  from data.datasets import DATASET_REGISTRY
  from data.datasets.classification.base_imagenet_shift_dataset import BaseImageNetShiftDataset
  from data.datasets.classification.imagenet_synsets import IMAGENET_R_SYNSETS, IMAGENET_SYNSETS
label_desc: Use image node_id 1 to create a new ImageNetRDataset object from inherited base classes: BaseImageNetShiftDataset with example: obj = ImageNetRDataset(opts)