code: def test_init(self):
      with self.assertRaises(AssertionError):
          ABIEncoder(d_model=512, n_head=10)
  
imports: from unittest import TestCase
  import torch
  from mmocr.models.textrecog.encoders.abi_encoder import ABIEncoder
label_desc: Use image node_id 1 for calling the TestABIEncoder obj's underlying member method code with example usage: obj.test_init() without return types