code: def setUp(self):
      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]
  
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 1 for calling the TestSAREncoder obj's underlying member method code with example usage: obj.setUp() without return types