code: def test_fit_transform(params):
      """Check that fit and transform and fit_transform yield same results."""
      transformer = WEASELMUSE(**params)
      arr_1 = transformer.fit(X, y).transform(X)
      arr_2 = transformer.fit_transform(X, y)
      if transformer.sparse:
          assert (arr_1 != arr_2).nnz == 0
      else:
          np.testing.assert_array_equal(arr_1, arr_2)
  
imports: import numpy
  import pytest
  from scipy.sparse import csr_matrix
  from pyts.multivariate.transformation import WEASELMUSE
label_desc: Use image node_id 4 for calling a global function with example usage: test_fit_transform(params) without return types