def METHOD_NAME(expected: ExpectedSeg):
    eps = numpy.finfo(float).eps
    x, y = distance_between_two_segments(expected.p0, expected.u0, expected.p1, expected.u1)
    if norm(expected.x - expected.y) == 0:
        assert norm(x - y) == 0.
    else:
        assert norm(expected.x - x) < eps
        assert norm(expected.y - y) < eps