code: def test_encoder(self):
      encoder = ASTEREncoder(10)
      feat = torch.randn(2, 10, 1, 25)
      out = encoder(feat)
      self.assertEqual(out.shape, torch.Size([2, 25, 10]))
  
imports: import unittest
  import torch
  from mmocr.models.textrecog.encoders import ASTEREncoder
label_desc: Use image node_id 1 for calling the TestASTEREncoder obj's underlying member method code with example usage: obj.test_encoder() without return types