code: def draw_line_on_buffer(
      buffer, image_w, image_h, points_2d, color, size=4
  ):
      x0 = int(points_2d[0][0])
      y0 = int(points_2d[0][1])
      x1 = int(points_2d[1][0])
      y1 = int(points_2d[1][1])
      dx = abs(x1 - x0)
      if x0 < x1:
          sx = 1
      else:
          sx = -1
      dy = -abs(y1 - y0)
      if y0 < y1:
          sy = 1
      else:
          sy = -1
      err = dx + dy
      while True:
          draw_points_on_buffer(
              buffer, image_w, image_h, ((x0, y0),), color, size
          )
          if x0 == x1 and y0 == y1:
              break
          e2 = 2 * err
          if e2 >= dy:
              err += dy
              x0 += sx
          if e2 <= dx:
              err += dx
              y0 += sy
  
imports: import glob
  import os
  import sys
  import math
  import argparse
  import copy
  import time
  from multiprocessing import Pool
  from PIL import Image
  import carla
  import random
label_desc: Use image node_id 7 for calling a global function with example usage: draw_line_on_buffer(buffer, image_w, image_h, points_2d, color, size) without return types