code: def test_text_det_local_visualizer(self):
      for with_poly in [True, False]:
          for with_bbox in [True, False]:
              vis_cfg = dict(with_poly=with_poly, with_bbox=with_bbox)
              self._test_add_datasample(vis_cfg=vis_cfg)
  
file_path: mmocr/tests/test_visualization/test_textdet_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 TextDetDataSample
  from mmocr.utils import bbox2poly
  from mmocr.visualization import TextDetLocalVisualizer
label_desc: Use image node_id 2 for calling the TestTextDetLocalVisualizer obj's underlying member method code with example usage: obj.test_text_det_local_visualizer() without return types