class_docstr: YouTube VIS dataset for video instance segmentation.
  
  Args:
      dataset_version (str): Select dataset year version.
class_docstr_tok: ["YouTube","VIS","dataset","for","video","instance","segmentation",".","Args",":","dataset_version","(","str",")",":","Select","dataset","year","version","."]
docstr: Pass the category of the corresponding year to metainfo.
  
  Args:
      dataset_version (str): Select dataset year version.
docstr_tok: ["Pass","the","category","of","the","corresponding","year","to","metainfo",".","Args",":","dataset_version","(","str",")",":","Select","dataset","year","version","."]
code: def set_dataset_classes(cls, dataset_version: str) -> None:
      """Pass the category of the corresponding year to metainfo.
  
      Args:
          dataset_version (str): Select dataset year version.
      """
      classes_2019_version = (
          "person",
          "giant_panda",
          "lizard",
          "parrot",
          "skateboard",
          "sedan",
          "ape",
          "dog",
          "snake",
          "monkey",
          "hand",
          "rabbit",
          "duck",
          "cat",
          "cow",
          "fish",
          "train",
          "horse",
          "turtle",
          "bear",
          "motorbike",
          "giraffe",
          "leopard",
          "fox",
          "deer",
          "owl",
          "surfboard",
          "airplane",
          "truck",
          "zebra",
          "tiger",
          "elephant",
          "snowboard",
          "boat",
          "shark",
          "mouse",
          "frog",
          "eagle",
          "earless_seal",
          "tennis_racket",
      )
  
      classes_2021_version = (
          "airplane",
          "bear",
          "bird",
          "boat",
          "car",
          "cat",
          "cow",
          "deer",
          "dog",
          "duck",
          "earless_seal",
          "elephant",
          "fish",
          "flying_disc",
          "fox",
          "frog",
          "giant_panda",
          "giraffe",
          "horse",
          "leopard",
          "lizard",
          "monkey",
          "motorbike",
          "mouse",
          "parrot",
          "person",
          "rabbit",
          "shark",
          "skateboard",
          "snake",
          "snowboard",
          "squirrel",
          "surfboard",
          "tennis_racket",
          "tiger",
          "train",
          "truck",
          "turtle",
          "whale",
          "zebra",
      )
  
      if dataset_version == "2019":
          cls.METAINFO = dict(classes=classes_2019_version)
      elif dataset_version == "2021":
          cls.METAINFO = dict(classes=classes_2021_version)
      else:
          raise NotImplementedError(
              "Not supported YouTubeVIS dataset"
              f"version: {dataset_version}"
          )
  
imports: from mmdet.registry import DATASETS
  from .base_video_dataset import BaseVideoDataset
label_desc: Use image node_id 2 for calling the YouTubeVISDataset obj's underlying member method code with example usage: obj.set_dataset_classes(cls, dataset_version) without return types