code: def test_init(self):
      with self.assertRaises(AssertionError):
          SAREncoder(enc_bi_rnn="bi")
      with self.assertRaises(AssertionError):
          SAREncoder(rnn_dropout=2)
      with self.assertRaises(AssertionError):
          SAREncoder(enc_gru="gru")
      with self.assertRaises(AssertionError):
          SAREncoder(d_model=512.5)
      with self.assertRaises(AssertionError):
          SAREncoder(d_enc=200.5)
      with self.assertRaises(AssertionError):
          SAREncoder(mask="mask")
  
file_path: mmocr/tests/test_models/test_textrecog/test_encoders/test_sar_encoder.py
imports: from unittest import TestCase
  import torch
  from mmocr.models.textrecog.encoders import SAREncoder
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 2 for calling the TestSAREncoder obj's underlying member method code with example usage: obj.test_init() without return types