code: def test_paa_performs_correctly_along_each_dim():
      """Test that PAA produces the same result along each dimension."""
      X = _make_nested_from_array(
          np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
          n_instances=1,
          n_columns=2,
      )
  
      p = PAA(num_intervals=3).fit(X)
      res = p.transform(X)
      orig = convert_list_to_dataframe(
          [[2.2, 5.5, 8.8], [2.2, 5.5, 8.8]]
      )
      orig.columns = X.columns
      assert check_if_dataframes_are_equal(res, orig)
  
file_path: sktime/sktime/transformations/panel/dictionary_based/tests/test_paa.py
imports: import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.dictionary_based._paa import PAA
  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_paa_performs_correctly_along_each_dim() without return types