code: def _assert_image_and_shape(self, out_file, out_shape):
      self.assertTrue(osp.exists(out_file))
      drawn_img = cv2.imread(out_file)
      self.assertTrue(drawn_img.shape == out_shape)
  
file_path: mmocr/tests/test_visualization/test_kie_visualizer.py
imports: import os.path
  import tempfile
  import unittest
  import cv2
  import numpy
  import torch
  from mmengine.structures import InstanceData
  from mmocr.structures import KIEDataSample
  from mmocr.utils import bbox2poly
  from mmocr.visualization import KIELocalVisualizer
label_desc: Use image node_id 5 for calling the TestTextKIELocalVisualizer obj's underlying member method code with example usage: obj._assert_image_and_shape(out_file, out_shape) without return types