code: def driving_direction(self, line1, line2, is_init=False):
      x1, y1 = line1[2] - line1[0], line1[3] - line1[1]
      x2, y2 = line2[0] - line1[0], line2[1] - line1[1]
      result = x1 * y2 - x2 * y1
  
      distance = self.get_distance_point2line([x2, y2], line1)
  
      if result < 0:
          result = 1
      elif result == 0:
          if line2[3] >= line2[1]:
              return -1
          else:
              return 1
      else:
          result = -1
  
      return result, distance
  
file_path: PaddleDetection/deploy/pipeline/ppvehicle/vehicle_retrograde.py
imports: import numpy
  import math
label_desc: Use image node_id 6 for calling the VehicleRetrogradeRecognizer obj's underlying member method code with example usage: obj.driving_direction(line1, line2, is_init) and returns: result,  distance, unknown, int