code: def common_superclass_wnid(group_name):
      """
      Get WordNet IDs of common superclasses.
  
      Args:
          group_name (str): Name of group
  
      Returns:
          superclass_wnid (list): List of WordNet IDs of superclasses
      """
      common_groups = {
          # ancestor_wnid = 'n00004258'
          "living_9": [
              "n02084071",  # dog, domestic dog, Canis familiaris
              "n01503061",  # bird
              "n01767661",  # arthropod
              "n01661091",  # reptile, reptilian
              "n02469914",  # primate
              "n02512053",  # fish
              "n02120997",  # feline, felid
              "n02401031",  # bovid
              "n01627424",  # amphibian
          ],
          "mixed_10": [
              "n02084071",  # dog,
              "n01503061",  # bird
              "n02159955",  # insect
              "n02484322",  # monkey
              "n02958343",  # car
              "n02120997",  # feline
              "n04490091",  # truck
              "n13134947",  # fruit
              "n12992868",  # fungus
              "n02858304",  # boat
          ],
          "mixed_13": [
              "n02084071",  # dog,
              "n01503061",  # bird (52)
              "n02159955",  # insect (27)
              "n03405725",  # furniture (21)
              "n02512053",  # fish (16),
              "n02484322",  # monkey (13)
              "n02958343",  # car (10)
              "n02120997",  # feline (8),
              "n04490091",  # truck (7)
              "n13134947",  # fruit (7)
              "n12992868",  # fungus (7)
              "n02858304",  # boat (6)
              "n03082979",  # computer(6)
          ],
          # Dataset from Geirhos et al., 2018: arXiv:1811.12231
          "geirhos_16": [
              "n02686568",  # aircraft (3)
              "n02131653",  # bear (3)
              "n02834778",  # bicycle (2)
              "n01503061",  # bird (52)
              "n02858304",  # boat (6)
              "n02876657",  # bottle (7)
              "n02958343",  # car (10)
              "n02121808",  # cat (5)
              "n03001627",  # char (4)
              "n03046257",  # clock (3)
              "n02084071",  # dog (116)
              "n02503517",  # elephant (2)
              "n03614532",  # keyboard (3)
              "n03623556",  # knife (2)
              "n03862676",  # oven (2)
              "n04490091",  # truck (7)
          ],
          "big_12": [
              "n02084071",  # dog (100+)
              "n04341686",  # structure (55)
              "n01503061",  # bird (52)
              "n03051540",  # clothing (48)
              "n04576211",  # wheeled vehicle
              "n01661091",  # reptile, reptilian (36)
              "n02075296",  # carnivore
              "n02159955",  # insect (27)
              "n03800933",  # musical instrument (26)
              "n07555863",  # food (24)
              "n03405725",  # furniture (21)
              "n02469914",  # primate (20)
          ],
          "mid_12": [
              "n02084071",  # dog (100+)
              "n01503061",  # bird (52)
              "n04576211",  # wheeled vehicle
              "n01661091",  # reptile, reptilian (36)
              "n02075296",  # carnivore
              "n02159955",  # insect (27)
              "n03800933",  # musical instrument (26)
              "n07555863",  # food (24)
              "n03419014",  # garment (24)
              "n03405725",  # furniture (21)
              "n02469914",  # primate (20)
              "n02512053",  # fish (16)
          ],
      }
  
      if group_name in common_groups:
          superclass_wnid = common_groups[group_name]
          return superclass_wnid
      else:
          raise ValueError("Custom group does not exist")
  
file_path: robustness/robustness/tools/imagenet_helpers.py
imports: import os
  import numpy
  import json
  from itertools import product
label_desc: Use image node_id 1 for calling a global function with example usage: common_superclass_wnid(group_name) and returns: superclass_wnid