class_docstr: Use to map the classes of datasets featuring a sub-set of Imagenet classes
  such as Imagenet-A or Imagenet-R to the Imagenet classes index
class_docstr_tok: ["Use","to","map","the","classes","of","datasets","featuring","a","sub-set","of","Imagenet","classes","such","as","Imagenet-A","or","Imagenet-R","to","the","Imagenet","classes","index"]
code: def get_target_mapping(self, path: str):
      path_classes = [
          p
          for p in os.listdir(path)
          if os.path.isdir(os.path.join(path, p))
      ]
      path_classes.sort()
      return {
          i: self.label_to_id[c] for i, c in enumerate(path_classes)
      }
  
file_path: vissl/extra_scripts/datasets/create_imagenet_a_data_files.py
imports: import argparse
  import os
  import numpy
  import torchvision.datasets
  from iopath.common.file_io import g_pathmgr
  from tqdm import tqdm
  from vissl.utils.download import download_and_extract_archive
  from vissl.utils.io import cleanup_dir
label_desc: Use image node_id 2 for calling the ImagenetTargetMapper obj's underlying member method code with example usage: obj.get_target_mapping(path) and returns: unknown