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