def test_methods_interval_feature_extractor(X, y, params):
    """Test the supported methods of IntervalFeatureExtractor."""
    n_samples = X.shape[0]
    feature_extractor = IntervalFeatureExtractor(**params).fit(X, y)
    n_subseries = feature_extractor.interval_indices_.shape[0]
    n_intervals = feature_extractor.interval_indices_.shape[1] - 1
    assert feature_extractor.transform(X).shape == (n_samples * n_subseries,
                                                    3 * n_intervals + 4)
Test the supported methods of IntervalFeatureExtractor.
pyts/classification/tests/test_tsbf.py