code: def line_similarity(p1a, p1b, p2a, p2b, T=CLOSE_DISTANCE_THRESHOLD):
      
      d = line_distance_similarity(p1a, p1b, p2a, p2b, T=T)
      a = abs(angle_similarity(normalize(line(p1a, p1b)), normalize(line(p2a, p2b))))
      return d * a
docs: Similarity between two lines
  
      Args:
          p1a ([float, float]): x and y coordinates. Line A start
          p1b ([float, float]): x and y coordinates. Line A end
          p2a ([float, float]): x and y coordinates. Line B start
          p2b ([float, float]): x and y coordinates. Line B end
      Returns:
          float: between 0 and 1. Where 1 is very similar and 0 is completely different