code: def _get_image_id(image_path):
      basename = osp.basename(image_path)
      basename = "_".join(basename.split("_")[:3])
      return osp.splitext(basename)[0]
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/datasets/cityscapes.py
imports: import copy
  import os.path
  from paddlepanseg.cvlibs import manager
  from .base_dataset import COCOStylePanopticDataset
label_desc: Use image node_id 1 for calling the Cityscapes obj's underlying member method code with example usage: obj._get_image_id(image_path) and returns: osp