code: def draw_junction(debug, junction, l_time=10):
      """Draws a junction bounding box and the initial and final waypoint of every lane."""
      # draw bounding box
      box = junction.bounding_box
      point1 = box.location + carla.Location(
          x=box.extent.x, y=box.extent.y, z=2
      )
      point2 = box.location + carla.Location(
          x=-box.extent.x, y=box.extent.y, z=2
      )
      point3 = box.location + carla.Location(
          x=-box.extent.x, y=-box.extent.y, z=2
      )
      point4 = box.location + carla.Location(
          x=box.extent.x, y=-box.extent.y, z=2
      )
      debug.draw_line(
          point1,
          point2,
          thickness=0.1,
          color=orange,
          life_time=l_time,
          persistent_lines=False,
      )
      debug.draw_line(
          point2,
          point3,
          thickness=0.1,
          color=orange,
          life_time=l_time,
          persistent_lines=False,
      )
      debug.draw_line(
          point3,
          point4,
          thickness=0.1,
          color=orange,
          life_time=l_time,
          persistent_lines=False,
      )
      debug.draw_line(
          point4,
          point1,
          thickness=0.1,
          color=orange,
          life_time=l_time,
          persistent_lines=False,
      )
      # draw junction pairs (begin-end) of every lane
      junction_w = junction.get_waypoints(carla.LaneType.Any)
      for pair_w in junction_w:
          draw_transform(debug, pair_w[0].transform, orange, l_time)
          debug.draw_point(
              pair_w[0].transform.location + carla.Location(z=0.75),
              0.1,
              orange,
              l_time,
              False,
          )
          draw_transform(debug, pair_w[1].transform, orange, l_time)
          debug.draw_point(
              pair_w[1].transform.location + carla.Location(z=0.75),
              0.1,
              orange,
              l_time,
              False,
          )
          debug.draw_line(
              pair_w[0].transform.location + carla.Location(z=0.75),
              pair_w[1].transform.location + carla.Location(z=0.75),
              0.1,
              white,
              l_time,
              False,
          )
  
file_path: carla/PythonAPI/util/lane_explorer.py
imports: import glob
  import os
  import sys
  import carla
  import argparse
  import random
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: draw_junction(debug, junction, l_time) without return types