code: def test_add_meta(self):
      packer = TextRecogPacker(data_root="", split="test")
      sample = [
          dict(img_path="test.jpg", instances=[dict(text="text")])
      ]
      results = packer.add_meta(sample)
      self.assertDictEqual(
          results,
          dict(
              metainfo=dict(
                  dataset_type="TextRecogDataset", task_name="textrecog"
              ),
              data_list=sample,
          ),
      )
  
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 TestTextRecogPacker obj's underlying member method code with example usage: obj.test_add_meta() without return types