code: def test_get_data_info(self):
      # id 0 has 21 objects
      img_id = 0
      data_list = [
          self.dataset.get_data_info(i)
          for i in range(len(self.dataset))
      ]
      assert (
          len(
              [
                  data_info
                  for data_info in data_list
                  if data_info["gt_label"] == img_id
              ]
          )
          == 21
      )
      # id 11 doesn't have objects
      img_id = 11
      assert (
          len(
              [
                  data_info
                  for data_info in data_list
                  if data_info["gt_label"] == img_id
              ]
          )
          == 0
      )
  
file_path: mmdetection/tests/test_datasets/test_reid_dataset.py
imports: import os.path
  from unittest import TestCase
  from mmdet.datasets import ReIDDataset
label_desc: Use image node_id 2 for calling the TestReIDDataset obj's underlying member method code with example usage: obj.test_get_data_info() without return types