code: def test_actual_results_bag_of_words(params, X, arr_desired):
      """Test that the actual results are the expected ones."""
      arr_actual = BagOfWords(**params).fit_transform(X)
      np.testing.assert_array_equal(arr_actual, arr_desired)
  
imports: import numpy
  import pytest
  import re
  from pyts.bag_of_words import BagOfWords, WordExtractor
label_desc: Use image node_id 4 for calling a global function with example usage: test_actual_results_bag_of_words(params, X, arr_desired) without return types