code: def test_attributes_time_series_forest(params):
      """Test the attributes of a fitted instance of TimeSeriesForest."""
      real_attributes = [
          "estimator_",
          "classes_",
          "estimators_",
          "feature_importances_",
          "indices_",
          "n_features_in_",
          "oob_decision_function_",
          "oob_score_",
      ]
      fake_attributes = ["yolo", "whoopsy", "mistake_were_made_"]
  
      clf = TimeSeriesForest(n_estimators=30, random_state=42, **params)
      clf.fit(X_arange, y)
  
      for attribute in real_attributes:
          assert hasattr(clf, attribute)
  
      for attribute in fake_attributes:
          assert not hasattr(clf, attribute)
  
file_path: pyts/pyts/classification/tests/test_time_series_forest.py
imports: import numpy
  import pytest
  import re
  from pyts.classification import TimeSeriesForest
  from pyts.classification.time_series_forest import WindowFeatureExtractor
label_desc: Use image node_id 5 for calling a global function with example usage: test_attributes_time_series_forest(params) without return types