code: def uwmgi_get_image_id(image_filepath):
      try:
          image_dirs = image_filepath.split("/")
          image_dirs = [image_dirs[1]] + image_dirs[3].split("_")[:2]
      except:
          image_dirs = image_filepath.replace("/", "\\").split("\\")
          image_dirs = [image_dirs[2]] + image_dirs[4].split("_")[:2]
      image_id = "_".join(image_dirs)
      return image_id
  
file_path: PaddleSeg/tools/data/convert_multilabel.py
imports: import argparse
  import os
  import random
  import zipfile
  import cv2
  import numpy
  import pandas
  from PIL import Image
  from pycocotools.coco import COCO
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: uwmgi_get_image_id(image_filepath) and returns: image_id