class_docstr: Class for generating datasets from ImageNet superclasses.
class_docstr_tok: ["Class","for","generating","datasets","from","ImageNet","superclasses","."]
code: def __init__(self, info_dir, root_wnid="n00001740"):
      self.hierarchy = ClassHierarchy(info_dir, root_wnid=root_wnid)
  
imports: import sys, os
  import json
  import numpy
  import pandas
  import urllib
  from collections import OrderedDict, Counter
  import operator
  import networkx
  from ..datasets import DATASETS
label_desc: Use image node_id 1 to create a new BreedsDatasetGenerator object  with example: obj = BreedsDatasetGenerator(info_dir, root_wnid)