code: def visualize_lane(im, lanes):
      if isinstance(im, str):
          im = Image.open(im).convert("RGB")
      elif isinstance(im, np.ndarray):
          im = Image.fromarray(im)
  
      draw_thickness = min(im.size) // 320
      draw = ImageDraw.Draw(im)
  
      if len(lanes) > 0:
          for lane in lanes:
              draw.line(
                  [(lane[0], lane[1]), (lane[2], lane[3])],
                  width=draw_thickness,
                  fill=(0, 0, 255),
              )
  
      return im
  
imports: from __future__ import division
  import os
  import cv2
  import math
  import numpy
  import PIL
  from PIL import Image, ImageDraw, ImageFile
label_desc: Use image node_id 14 for calling a global function with example usage: visualize_lane(im, lanes) and returns: im