code: def test_json_dumpers(self):
      task, split = "textdet", "train"
      fake_data = dict(
          metainfo=dict(
              dataset_type="TextDetDataset",
              task_name="textdet",
              category=[dict(id=0, name="text")],
          )
      )
  
      dumper = JsonDumper(task, split, self.root.name)
      dumper.dump(fake_data)
      with open(
          osp.join(self.root.name, f"{task}_{split}.json"), "r"
      ) as f:
          data = json.load(f)
      self.assertEqual(data, fake_data)
  
file_path: mmocr/tests/test_datasets/test_preparers/test_dumpers/test_dumpers.py
imports: import json
  import os.path
  import tempfile
  import unittest
  from mmocr.datasets.preparers.dumpers import JsonDumper, WildreceiptOpensetDumper
label_desc: Use image node_id 2 for calling the TestDumpers obj's underlying member method code with example usage: obj.test_json_dumpers() without return types