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