code: def draw_transform(debug, trans, col=Colors.red, lt=-1):
      yaw_in_rad = math.radians(trans.rotation.yaw)
      pitch_in_rad = math.radians(trans.rotation.pitch)
  
      p1 = carla.Location(
          x=trans.location.x
          + math.cos(pitch_in_rad) * math.cos(yaw_in_rad),
          y=trans.location.y
          + math.cos(pitch_in_rad) * math.sin(yaw_in_rad),
          z=trans.location.z + math.sin(pitch_in_rad),
      )
  
      debug.draw_arrow(
          trans.location,
          p1,
          thickness=0.05,
          arrow_size=0.1,
          color=col,
          life_time=lt,
      )
  
imports: import os
  import cv2
  import math
  import random
  import numpy
  import carla
  import pygame
  import threading
  import datetime
  from typing import Union
  from tensorforce.agents import Agent
label_desc: Use image node_id 19 for calling a global function with example usage: draw_transform(debug, trans, col, lt) without return types