code: def test_init(self):
      img_shape = (256, 128)
      ori_shape = (64, 64)
      num_classes = 5
      meta_info = dict(
          img_shape=img_shape,
          ori_shape=ori_shape,
          num_classes=num_classes,
      )
      data_sample = ReIDDataSample(metainfo=meta_info)
      self.assertIn("img_shape", data_sample)
      self.assertIn("ori_shape", data_sample)
      self.assertIn("num_classes", data_sample)
      self.assertTrue(_equal(data_sample.get("img_shape"), img_shape))
      self.assertTrue(_equal(data_sample.get("ori_shape"), ori_shape))
      self.assertTrue(
          _equal(data_sample.get("num_classes"), num_classes)
      )
  
file_path: mmdetection/tests/test_structures/test_reid_data_sample.py
imports: from unittest import TestCase
  import numpy
  import torch
  from mmengine.structures import LabelData
  from mmdet.structures import ReIDDataSample
label_desc: Use image node_id 1 for calling the TestReIDDataSample obj's underlying member method code with example usage: obj.test_init() without return types