code: def test_pack_instance(self):
      packer = TextRecogCropPacker(
          data_root=self.root.name, split="test"
      )
      instance = packer.pack_instance(self.sample)
      self.assertListEqual(
          instance,
          [
              dict(
                  img_path=osp.join(
                      "textrecog_imgs", "test", "test_img_0.jpg"
                  ),
                  instances=[dict(text="text1")],
              ),
              dict(
                  img_path=osp.join(
                      "textrecog_imgs", "test", "test_img_1.jpg"
                  ),
                  instances=[dict(text="text2")],
              ),
          ],
      )
  
file_path: mmocr/tests/test_datasets/test_preparers/test_packers/test_textrecog_packer.py
imports: import os.path
  import tempfile
  import unittest
  import cv2
  import numpy
  from mmocr.datasets.preparers import TextRecogCropPacker, TextRecogPacker
label_desc: Use image node_id 2 for calling the TestTextRecogCropPacker obj's underlying member method code with example usage: obj.test_pack_instance() without return types