def test_reshape_array_shapelets_inverse(shapelets, lengths):
    """Test that the actual results are the expected ones."""
    shapelets_array = _reshape_array_shapelets(shapelets, lengths)
    shapelets_tuple = tuple(_reshape_list_shapelets(shapelets_array, lengths))
    assert len(shapelets) == len(shapelets_tuple)
    for arr_actual, arr_desired in zip(shapelets, shapelets_tuple):
        np.testing.assert_allclose(arr_actual, arr_desired, atol=1e-5, rtol=0.)
Test that the actual results are the expected ones.
pyts/classification/tests/test_learning_shapelets.py