code: def get_segmentation_classes(version="v6", dataset_dir=None):
      """Gets the list of classes (350) that are labeled with segmentations in
      the Open Images V6/V7 dataset.
  
      This method can be called in isolation without downloading the dataset.
  
      Args:
          version ("v6"): the version of the Open Images dataset. Supported
              values are ``("v6")``
          dataset_dir (None): an optional root directory the in which the dataset
              is downloaded
  
      Returns:
          a sorted list of segmentation class name strings
      """
      _verify_version(version)
  
      if dataset_dir is None:
          dataset_dir = os.path.join(
              fo.config.dataset_zoo_dir, "open-images-%s" % version
          )
  
      try:
          # Try to use already downloaded file
          seg_classes, _ = _get_seg_classes(dataset_dir, download=False)
      except:
          # Download file to temporary location
          with etau.TempDir() as tmp_dir:
              seg_classes, _ = _get_seg_classes(tmp_dir, download=True)
  
      return seg_classes
  
imports: from collections import defaultdict
  import csv
  from glob import glob
  import logging
  import os
  import random
  import warnings
  import pandas
  import eta.core.image
  import eta.core.serial
  import eta.core.utils
  import eta.core.web
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.utils.aws
  import fiftyone.utils.data
  import fiftyone.utils.image
label_desc: Use image node_id 3 for calling a global function with example usage: get_segmentation_classes(version, dataset_dir) and returns: seg_classes