code: def add_bbox_with_alpha(
      im: np.ndarray,
      tl: tuple,
      br: tuple,
      line_color: tuple,
      alpha: float,
      line_thickness: int,
  ):
      """
      draw one box borders with transparency (alpha)
  
      Parameters
      ----------
      im
          np.ndarray: the image to draw bbox on
      tl
          tuple: bottom right corner of the bounding box: tl = (x1, y1)
      br
          tuple: bottom right corner of the bounding box: br = (x1, y1)
      line_color
          tuple: the color of the box borders, e.g. (0, 0, 0)
      alpha
          float: the opacity of the bbox borders
      line_thickness:
          int: thickness of the border
      Returns
      -------
      an np.ndarray of image with added bbox
      """
      try:
          import cv2
      except:
          raise ImportError(
              "No module named: cv2. Please install cv2 by 'pip install opencv-python'"
          )
      overlay = im.copy()
      cv2.rectangle(
          overlay, tl, br, line_color, thickness=line_thickness
      )
      im = cv2.addWeighted(overlay, alpha, im, 1 - alpha, 0)
      return im
  
imports: import json
  import logging
  import os
  import warnings
  from pathlib import Path
  from typing import Dict, Iterable, List, Optional, Union
  import defusedxml.ElementTree
  import numpy
  import pandas
  import PIL
  from torchmetrics.detection.mean_ap import MeanAveragePrecision
  from ..constants import BBOX, LABEL, MAP, MAP_50, MAP_75, MAP_LARGE, MAP_MEDIUM, MAP_SMALL, MAR_1, MAR_10, MAR_100, MAR_LARGE, MAR_MEDIUM, MAR_SMALL, MEAN_AVERAGE_PRECISION
  from .download import download, is_url
label_desc: Use image node_id 32 for calling a global function with example usage: add_bbox_with_alpha(im, tl, br, line_color, alpha, line_thickness) and returns: im