code: def test_init(self):
      with self.assertRaises(AssertionError):
          BaseTextDetPostProcessor(text_repr_type="polygon")
      with self.assertRaises(AssertionError):
          BaseTextDetPostProcessor(rescale_fields="bbox")
      with self.assertRaises(AssertionError):
          BaseTextDetPostProcessor(train_cfg="test")
      with self.assertRaises(AssertionError):
          BaseTextDetPostProcessor(test_cfg="test")
  
file_path: mmocr/tests/test_models/test_textdet/test_postprocessors/test_base_postprocessor.py
imports: import unittest
  from unittest import mock
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.models.textdet.postprocessors import BaseTextDetPostProcessor
  from mmocr.structures import TextDetDataSample
label_desc: Use image node_id 1 for calling the TestBaseTextDetPostProcessor obj's underlying member method code with example usage: obj.test_init() without return types