def test_fetch_cached_ucr_dataset():
    """Test that a cached dataset can be loaded using 'fetch_ucr_dataset'."""
    res = fetch_ucr_dataset('GunPoint', use_cache=True)
    assert res.data_train.shape == (50, 150)
    assert res.data_test.shape == (150, 150)
    assert res.target_train.shape == (50,)
    assert res.target_test.shape == (150,)
Test that a cached dataset can be loaded using 'fetch_ucr_dataset'.
pyts/datasets/tests/test_ucr.py