code: def draw_box_txt(bbox, text, draw, font, font_size, color):
      # draw ocr results outline
      bbox = ((bbox[0], bbox[1]), (bbox[2], bbox[3]))
      draw.rectangle(bbox, fill=color)
  
      # draw ocr results
      left, top, right, bottom = font.getbbox(text)
      tw, th = right - left, bottom - top
      start_y = max(0, bbox[0][1] - th)
      draw.rectangle(
          [
              (bbox[0][0] + 1, start_y),
              (bbox[0][0] + tw + 1, start_y + th),
          ],
          fill=(0, 0, 255),
      )
      draw.text(
          (bbox[0][0] + 1, start_y),
          text,
          fill=(255, 255, 255),
          font=font,
      )
  
file_path: PaddleOCR/ppocr/utils/visual.py
imports: import cv2
  import os
  import numpy
  from PIL import Image, ImageDraw, ImageFont
label_desc: Use image node_id 2 for calling a global function with example usage: draw_box_txt(bbox, text, draw, font, font_size, color) without return types