class_docstr: LVIS v1 dataset for detection.
class_docstr_tok: ["LVIS","v1","dataset","for","detection","."]
docstr: Get COCO category ids by index.
  
  Args:
      idx (int): Index of data.
  
  Returns:
      List[int]: All categories in the image of specified index.
docstr_tok: ["Get","COCO","category","ids","by","index",".","Args",":","idx","(","int",")",":","Index","of","data",".","Returns",":","List","[","int","]",":","All","categories","in","the","image","of","specified","index","."]
code: def get_cat_ids(self, idx: int) -> List[int]:
      """Get COCO category ids by index.
  
      Args:
          idx (int): Index of data.
  
      Returns:
          List[int]: All categories in the image of specified index.
      """
      data_info = self.get_data_info(idx)
      image_labels = []
      for instance in data_info["instances"]:
          image_labels.append(instance["bbox_label"])
  
      return image_labels
  
file_path: mmdetection/projects/Detic_new/detic/imagenet_lvis.py
imports: import copy
  import os.path
  import pickle
  import warnings
  from typing import List, Union
  from mmengine.fileio import get_local_path
  from mmdet.datasets import LVISV1Dataset
  from mmdet.registry import DATASETS
label_desc: Use image node_id 4 for calling the ImageNetLVISV1Dataset obj's underlying member method code with example usage: obj.get_cat_ids(idx) and returns: image_labels