code: def draw_waypoints(world, waypoints, z=0.5):
      """
      Draw a list of waypoints at a certain height given in z.
  
          :param world: carla.world object
          :param waypoints: list or iterable container with the waypoints to draw
          :param z: height in meters
      """
      for wpt in waypoints:
          wpt_t = wpt.transform
          begin = wpt_t.location + carla.Location(z=z)
          angle = math.radians(wpt_t.rotation.yaw)
          end = begin + carla.Location(
              x=math.cos(angle), y=math.sin(angle)
          )
          world.debug.draw_arrow(
              begin, end, arrow_size=0.3, life_time=1.0
          )
  
file_path: carla/PythonAPI/carla/agents/tools/misc.py
imports: import math
  import numpy
  import carla
label_desc: Use image node_id 1 for calling a global function with example usage: draw_waypoints(world, waypoints, z) without return types