code: def get_class_proportions(classes, pixels_per_cid):
      """Returns a [num_classes] array of pixel frequency proportions."""
      p = [
          pixels_per_cid[c.id] for c in classes if not c.ignore_in_eval
      ]
      return np.array(p) / np.sum(p)
  
file_path: scenic/scenic/projects/robust_segvit/datasets/segmentation_datasets.py
imports: import functools
  from typing import Dict, List, Optional, Tuple
  from absl import logging
  import jax.numpy
  import ml_collections
  import numpy
  from scenic.dataset_lib import dataset_utils
  from scenic.dataset_lib import datasets
  from scenic.projects.robust_segvit.datasets import datasets_info
  from scenic.projects.robust_segvit.datasets import denoise_utils
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: get_class_proportions(classes, pixels_per_cid) and returns: unknown