code: def test_init(self):
      meta_info = dict(
          img_size=[256, 256],
          scale_factor=np.array([1.5, 1.5]),
          img_shape=torch.rand(4),
      )
  
      kie_data_sample = KIEDataSample(metainfo=meta_info)
      assert "img_size" in kie_data_sample
  
      self.assertListEqual(kie_data_sample.img_size, [256, 256])
      self.assertListEqual(kie_data_sample.get("img_size"), [256, 256])
  
file_path: mmocr/tests/test_structures/test_kie_data_sample.py
imports: from unittest import TestCase
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.structures import KIEDataSample
label_desc: Use image node_id 2 for calling the TestTextDetDataSample obj's underlying member method code with example usage: obj.test_init() without return types