code: def test_init(self):
      cfg = dict(type="FakeModule")
  
      with self.assertRaises(AssertionError):
          BaseTextDetHead([], cfg)
      with self.assertRaises(AssertionError):
          BaseTextDetHead(cfg, [])
  
      decoder = BaseTextDetHead(None, None)
      self.assertIsNone(decoder.module_loss)
      self.assertIsNone(decoder.postprocessor)
      decoder = BaseTextDetHead(cfg, cfg)
      self.assertIsInstance(decoder.module_loss, FakeModule)
      self.assertIsInstance(decoder.postprocessor, FakeModule)
  
file_path: mmocr/tests/test_models/test_textdet/test_heads/test_base_head.py
imports: from unittest import TestCase, mock
  from mmocr.models.textdet import BaseTextDetHead
  from mmocr.registry import MODELS
label_desc: Use image node_id 1 for calling the TestBaseTextDetHead obj's underlying member method code with example usage: obj.test_init() without return types