code: def test_get_labels_image(self):
      labels = ["a", "b", "c"]
      image = np.zeros((40, 40, 3), dtype=np.uint8)
      bboxes = np.array(
          [[0, 0, 10, 10], [10, 10, 20, 20], [20, 20, 30, 30]]
      )
      labels_image = BaseLocalVisualizer().get_labels_image(
          image,
          labels,
          bboxes=bboxes,
          auto_font_size=True,
          colors=["r", "r", "r", "r"],
      )
      self.assertEqual(labels_image.shape, (40, 40, 3))
  
file_path: mmocr/tests/test_visualization/test_base_visualizer.py
imports: from unittest import TestCase
  import numpy
  from mmocr.visualization import BaseLocalVisualizer
label_desc: Use image node_id 1 for calling the TestBaseLocalVisualizer obj's underlying member method code with example usage: obj.test_get_labels_image() without return types