code: def convert_phrase_ids(phrase_ids: list) -> list:
      unique_elements = sorted(set(phrase_ids))
      element_to_new_label = {
          element: label
          for label, element in enumerate(unique_elements)
      }
      phrase_ids = [
          element_to_new_label[element] for element in phrase_ids
      ]
      return phrase_ids
  
file_path: mmdetection/mmdet/datasets/flickr30k.py
imports: import os.path
  from typing import List
  from pycocotools.coco import COCO
  from mmdet.registry import DATASETS
  from .base_det_dataset import BaseDetDataset
label_desc: Use image node_id 1 for calling a global function with example usage: convert_phrase_ids(phrase_ids) and returns: phrase_ids