code: def test_dataset_preparer(self):
      cfg_path = self._create_config()
      cfg = Config.fromfile(cfg_path)
      preparer = DatasetPreparer.from_file(cfg)
      preparer.run()
      self.assertFalse(osp.exists(cfg_path))
  
file_path: mmocr/tests/test_datasets/test_preparers/test_data_preparer.py
imports: import os.path
  import unittest
  from mmengine import Config
  from mmocr.datasets.preparers import DatasetPreparer
  from mmocr.datasets.preparers.data_preparer import CFG_GENERATORS, DATA_DUMPERS, DATA_GATHERERS, DATA_OBTAINERS, DATA_PACKERS, DATA_PARSERS
label_desc: Use image node_id 2 for calling the TestDataPreparer obj's underlying member method code with example usage: obj.test_dataset_preparer() without return types