code: def test_init(self):
      with self.assertRaises(AssertionError):
          SDMGRHead(dictionary="str")
  
file_path: mmocr/tests/test_models/test_kie/test_heads/test_sdmgr_head.py
imports: import os.path
  import tempfile
  from unittest import TestCase
  import torch
  from mmengine.structures import InstanceData
  from mmocr.models.common.dictionary import Dictionary
  from mmocr.models.kie.heads import SDMGRHead
  from mmocr.structures import KIEDataSample
  from mmocr.testing import create_dummy_dict_file
label_desc: Use image node_id 1 for calling the TestSDMGRHead obj's underlying member method code with example usage: obj.test_init() without return types