code: def get_dominant_id_ndx(np_image):
      if isinstance(np_image, wandb.Image):
          np_image = np.array(np_image.image)
      return BDD_ID_MAP[
          np.argmax(np.bincount(np_image.astype(int).flatten()))
      ]
  
imports: import os
  import pickle
  import shutil
  import time
  import numpy
  import wandb
  from PIL import Image
label_desc: Use image node_id 7 for calling a global function with example usage: get_dominant_id_ndx(np_image) and returns: BDD_ID_MAP