def METHOD_NAME(box0, box1, precision):
    dims0 = box0.dimensions()
    dims1 = box1.dimensions()
    assert dims0.x().value() == pytest.approx(dims1.x().value(), precision)
    assert dims0.y().value() == pytest.approx(dims1.y().value(), precision)
    assert dims0.z().value() == pytest.approx(dims1.z().value(), precision)