code: def test_fit_transform(X, params):
      """Test that fit and transform yield the same results as fit_transform."""
      arr_1 = DiscreteFourierTransform(**params).fit(X, y).transform(X)
      arr_2 = DiscreteFourierTransform(**params).fit_transform(X, y)
      np.testing.assert_array_equal(arr_1, arr_2)
  
file_path: pyts/pyts/approximation/tests/test_dft.py
imports: import numpy
  import pytest
  import re
  from sklearn.feature_selection import f_classif
  from pyts.approximation import DiscreteFourierTransform
label_desc: Use image node_id 5 for calling a global function with example usage: test_fit_transform(X, params) without return types