code: def test_pack_instance(self):
      packer = TextRecogPacker(data_root="data/test/", split="test")
      sample = ("data/test/test.jpg", "text")
      results = packer.pack_instance(sample)
      self.assertDictEqual(
          results,
          dict(img_path="test.jpg", instances=[dict(text="text")]),
      )
  
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 1 for calling the TestTextRecogPacker obj's underlying member method code with example usage: obj.test_pack_instance() without return types