code: def get_label_infos(file_list: str) -> str:
      """Get label names by corresponding category ids."""
      from pycocotools.coco import COCO
  
      map_label = COCO(file_list)
      label_names = []
      categories = map_label.loadCats(map_label.getCatIds())
      for category in categories:
          label_names.append(category["name"])
      return label_names
  
imports: import os
  from typing import Callable, Union, List, Tuple
  import cv2
  import paddle
  import PIL
  import numpy
  import paddle.nn.functional
  from scipy.sparse import csr_matrix
label_desc: Use image node_id 6 for calling a global function with example usage: get_label_infos(file_list) and returns: label_names