code: def assert_prediction_equal(self, pred1, pred2):
      self.assertTrue(
          np.allclose(pred1["polygons"], pred2["polygons"], 0.1)
      )
      self.assertTrue(
          np.allclose(pred1["scores"], pred2["scores"], 0.1)
      )
  
imports: import os.path
  import random
  import tempfile
  from unittest import TestCase, mock
  import mmcv
  import mmengine
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.apis.inferencers import TextDetInferencer
  from mmocr.utils.check_argument import is_type_list
  from mmocr.utils.typing_utils import TextDetDataSample
label_desc: Use image node_id 4 for calling the TestTextDetinferencer obj's underlying member method code with example usage: obj.assert_prediction_equal(pred1, pred2) without return types