<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def distance_to_line(a, b, p):
 """Closest distance between a line segment and a point Args: a ([float, float]):
 x and y coordinates. Line start b ([float, float]):
 x and y coordinates. Line end p ([float, float]):
 x and y coordinates. Point to compute the distance Returns: float """

    return distance(closest_point(a, b, p), p)