code: def lines_intersect(p0, p1, p2, p3):
      """
      Returns
      -------
      bool
          Boolean indicating whether the two lines defined by p0->p1 and p2->p3
          intersect.
      """
      x_1, y_1 = p0
      x_2, y_2 = p1
      x_3, y_3 = p2
      x_4, y_4 = p3
  
      return (x_1 - x_2) * (y_3 - y_4) - (y_1 - y_2) * (x_3 - x_4) != 0
      cp1 = np.cross(p1 - p0, p2 - p0)
      cp2 = np.cross(p1 - p0, p3 - p0)
      return np.sign(cp1) == np.sign(cp2) and cp1 != 0
  
imports: import matplotlib.path
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: lines_intersect(p0, p1, p2, p3) and returns: unknown, unknown