code: def test_encoder(self):
      satrn_encoder = SATRNEncoder()
      satrn_encoder.init_weights()
      satrn_encoder.train()
      out_enc = satrn_encoder(self.feat)
      self.assertEqual(out_enc.shape, torch.Size([1, 200, 512]))
      out_enc = satrn_encoder(self.feat, self.data_info)
      self.assertEqual(out_enc.shape, torch.Size([1, 200, 512]))
  
imports: import unittest
  import torch
  from mmocr.models.textrecog.encoders import SATRNEncoder
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 2 for calling the TestSATRNEncoder obj's underlying member method code with example usage: obj.test_encoder() without return types