def could_line_segment_contain_coordinate(line_segment, coordinate):
    """
    Checks to see if a line segment could contain a coordinate by seeing if the coordinate's values are between the
    line segment's start and end coordinate values.
    """
    return ((line_segment.start.x <= coordinate.x <= line_segment.end.x) or (line_segment.end.x >= coordinate.x >= line_segment.start.x)) and \
           ((line_segment.start.y <= coordinate.y <= line_segment.end.y) or (line_segment.end.y >= coordinate.y >= line_segment.start.y))