code: def test_output_of_transformer():
      """Test that the transformer has changed the data correctly."""
      X = _make_nested_from_array(
          np.array([4, 6, 10, 12, 8, 6, 5, 5]),
          n_instances=1,
          n_columns=1,
      )
  
      h = HOG1DTransformer().fit(X)
      res = h.transform(X)
      orig = convert_list_to_dataframe(
          [[0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0]]
      )
      orig.columns = X.columns
      assert check_if_dataframes_are_equal(res, orig)
  
      X = _make_nested_from_array(
          np.array([-5, 2.5, 1, 3, 10, -1.5, 6, 12, -3, 0.2]),
          n_instances=1,
          n_columns=1,
      )
      h = h.fit(X)
      res = h.transform(X)
      orig = convert_list_to_dataframe(
          [[0, 0, 0, 0, 4, 1, 0, 0, 0, 0, 2, 0, 2, 1, 0, 0]]
      )
      orig.columns = X.columns
      assert check_if_dataframes_are_equal(res, orig)
  
file_path: sktime/sktime/transformations/panel/tests/test_hog1d_transformer.py
imports: import numbers
  import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.hog1d import HOG1DTransformer
  from sktime.utils._testing.panel import _make_nested_from_array
label_desc: Use image node_id 4 for calling a global function with example usage: test_output_of_transformer() without return types