code: def line2d_dist(l, p):
      """
      Distance from line to point
      line is a tuple of coefficients a,b,c
      """
      a, b, c = l
      x0, y0 = p
      return abs((a * x0 + b * y0 + c) / np.sqrt(a**2 + b**2))
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import zip
  import numpy
  import numpy.linalg
label_desc: Use image node_id 2 for calling a global function with example usage: line2d_dist(l, p) and returns: abs