code: def line(image, x0, y0, x1, y1, color):
      steep = False
      if (
          x0 < 0
          or x0 >= 400
          or x1 < 0
          or x1 >= 400
          or y0 < 0
          or y0 >= 400
          or y1 < 0
          or y1 >= 400
      ):
          return
  
      if abs(x0 - x1) < abs(y0 - y1):
          x0, y0 = y0, x0
          x1, y1 = y1, x1
          steep = True
  
      if x0 > x1:
          x0, x1 = x1, x0
          y0, y1 = y1, y0
  
      for x in range(int(x0), int(x1) + 1):
          t = (x - x0) / float(x1 - x0)
          y = y0 * (1 - t) + y1 * t
          if steep:
              image[x, int(y)] = color
          else:
              image[int(y), x] = color
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import menpo.io
  from menpo.image import Image
  from menpo.shape import PointCloud
  import cv2
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.contrib.framework.python.ops import variables
  from tensorflow.python.training import optimizer
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
  from menpo.transform import Translation, Scale
  from menpo.shape import PointCloud
label_desc: Use image node_id 6 for calling a global function with example usage: line(image, x0, y0, x1, y1, color) without return types