code: def pldist(point, start, end):
      
      if np.all(np.equal(start, end)):
          return np.linalg.norm(point - start)
  
      return np.divide(
              np.abs(np.linalg.norm(np.cross(end - start, start - point))),
              np.linalg.norm(end - start))
docs: Calculates the distance from ``point`` to the line given
      by the points ``start`` and ``end``.
  
      :param point: a point
      :type point: numpy array
      :param start: a point of the line
      :type start: numpy array
      :param end: another point of the line
      :type end: numpy array