class_docstr: This is a module responsible for creating 3D bounding boxes and drawing them
  client-side on pygame surface.
class_docstr_tok: ["This","is","a","module","responsible","for","creating","3D","bounding","boxes","and","drawing","them","client-side","on","pygame","surface","."]
docstr: Draws bounding boxes on pygame display.
docstr_tok: ["Draws","bounding","boxes","on","pygame","display","."]
code: def draw_bounding_boxes(display, bounding_boxes):
      """
      Draws bounding boxes on pygame display.
      """
  
      bb_surface = pygame.Surface((VIEW_WIDTH, VIEW_HEIGHT))
      bb_surface.set_colorkey((0, 0, 0))
      for bbox in bounding_boxes:
          points = [
              (int(bbox[i, 0]), int(bbox[i, 1])) for i in range(8)
          ]
          # draw lines
          # base
          pygame.draw.line(bb_surface, BB_COLOR, points[0], points[1])
          pygame.draw.line(bb_surface, BB_COLOR, points[0], points[1])
          pygame.draw.line(bb_surface, BB_COLOR, points[1], points[2])
          pygame.draw.line(bb_surface, BB_COLOR, points[2], points[3])
          pygame.draw.line(bb_surface, BB_COLOR, points[3], points[0])
          # top
          pygame.draw.line(bb_surface, BB_COLOR, points[4], points[5])
          pygame.draw.line(bb_surface, BB_COLOR, points[5], points[6])
          pygame.draw.line(bb_surface, BB_COLOR, points[6], points[7])
          pygame.draw.line(bb_surface, BB_COLOR, points[7], points[4])
          # base-top
          pygame.draw.line(bb_surface, BB_COLOR, points[0], points[4])
          pygame.draw.line(bb_surface, BB_COLOR, points[1], points[5])
          pygame.draw.line(bb_surface, BB_COLOR, points[2], points[6])
          pygame.draw.line(bb_surface, BB_COLOR, points[3], points[7])
      display.blit(bb_surface, (0, 0))
  
imports: import glob
  import os
  import sys
  import carla
  import weakref
  import random
label_desc: Use image node_id 2 for calling the ClientSideBoundingBoxes obj's underlying member method code with example usage: obj.draw_bounding_boxes(display, bounding_boxes) without return types