code: 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,
      )
  
file_path: pyts/pyts/classification/tests/test_tsbf.py
imports: import numpy
  import pytest
  import re
  from pyts.classification import TSBF
  from pyts.classification.tsbf import IntervalFeatureExtractor
  from pyts.classification.tsbf import extract_features, histogram
  from sklearn.tree import DecisionTreeClassifier
label_desc: Use image node_id 7 for calling a global function with example usage: test_methods_interval_feature_extractor(X, y, params) without return types