code: def test_apply_one_kernel_one_sample(params, arr_desired):
      """Test the convolutions applied to one time series."""
      arr_actual = apply_one_kernel_one_sample(
          x=X[0], n_timestamps=7, **params
      )
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0
      )
  
file_path: pyts/pyts/transformation/tests/test_rocket.py
imports: import numpy
  import pytest
  import re
  from pyts.transformation.rocket import generate_kernels, apply_one_kernel_one_sample, apply_all_kernels
  from pyts.transformation import ROCKET
label_desc: Use image node_id 2 for calling a global function with example usage: test_apply_one_kernel_one_sample(params, arr_desired) without return types