code: def test_add_meta(self):
      packer = TextSpottingPacker(
          data_root=self.root.name, split="test"
      )
      instance = packer.pack_instance(self.sample)
      meta = packer.add_meta(instance)
      self.assertDictEqual(
          meta,
          {
              "metainfo": {
                  "dataset_type": "TextSpottingDataset",
                  "task_name": "textspotting",
                  "category": [{"id": 0, "name": "text"}],
              },
              "data_list": instance,
          },
      )
  
file_path: mmocr/tests/test_datasets/test_preparers/test_packers/test_textspotting_packer.py
imports: import os.path
  import tempfile
  import unittest
  import cv2
  import numpy
  from mmocr.datasets.preparers import TextSpottingPacker
label_desc: Use image node_id 3 for calling the TestTextSpottingPacker obj's underlying member method code with example usage: obj.test_add_meta() without return types