def test_reshape_array_shapelets(shapelets, lengths, arr_desired):
    """Test that the actual results are the expected ones."""
    arr_actual = _reshape_array_shapelets(shapelets, lengths)
    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