code: def setUp(self):
      self.feat = torch.randn(2, 512, 8, 25)
      gt_text_sample1 = TextRecogDataSample()
      gt_text_sample1.set_metainfo(dict(valid_ratio=0.9))
  
      gt_text_sample2 = TextRecogDataSample()
      gt_text_sample2.set_metainfo(dict(valid_ratio=1.0))
  
      self.data_info = [gt_text_sample1, gt_text_sample2]
  
imports: import unittest
  import torch
  from mmocr.models.textrecog.encoders import NRTREncoder
  from mmocr.structures import TextRecogDataSample
label_desc: Use image node_id 1 for calling the TestNRTREncoder obj's underlying member method code with example usage: obj.setUp() without return types