code: def setUp(self):
      node_preds = self.rand_prob_dist(6, 3)
      edge_preds = self.rand_prob_dist(20, 2)
      self.preds = (node_preds, edge_preds)
  
      data_sample1 = KIEDataSample()
      data_sample1.gt_instances = InstanceData(
          bboxes=torch.randint(0, 26, (2, 4)).long()
      )
      data_sample2 = KIEDataSample()
      data_sample2.gt_instances = InstanceData(
          bboxes=torch.randint(0, 26, (4, 4)).long()
      )
      self.data_samples = [data_sample1, data_sample2]
  
file_path: mmocr/tests/test_models/test_kie/test_postprocessors/test_sdmgr_postprocessor.py
imports: import copy
  from unittest import TestCase
  import torch
  from mmengine.structures import InstanceData
  from mmocr.models.kie.postprocessors import SDMGRPostProcessor
  from mmocr.structures import KIEDataSample
label_desc: Use image node_id 1 for calling the TestSDMGRPostProcessor obj's underlying member method code with example usage: obj.setUp() without return types