code: def visualize_boxes_xyxy(
      image: np.ndarray, boxes: np.ndarray
  ) -> np.ndarray:
      """Utility function to draw bounding boxes of objects on a given image"""
      if "cv2" not in sys.modules:
          logger.error(
              "OpenCV is an optional dependency. Please run pip install opencv-contrib-python==4.5.5.64."
          )
      boxes = boxes.astype(np.int)
  
      new_image = copy.deepcopy(image)
      for box_idx in range(boxes.shape[0]):
          coords = boxes[box_idx]
          r, g, b = 255, 0, 0
          # top -left corner
          start_coord = (coords[0], coords[1])
          # bottom-right corner
          end_coord = (coords[2], coords[3])
          cv2.rectangle(
              new_image, end_coord, start_coord, (r, g, b), thickness=1
          )
      return new_image
  
file_path: ml-cvnets/utils/visualization_utils.py
imports: import copy
  import random
  import sys
  from typing import List, Optional
  from torch import Tensor
  import numpy
  from matplotlib.colors import hsv_to_rgb
  from torch import Tensor
  from utils import logger
  from utils.color_map import Colormap
label_desc: Use image node_id 1 for calling a global function with example usage: visualize_boxes_xyxy(image, boxes) and returns: new_image