code: def test_dwt_performs_correctly_along_each_dim():
      """Test that DWT 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,
      )
  
      d = DWTTransformer(num_levels=3).fit(X)
      res = d.transform(X)
      orig = convert_list_to_dataframe(
          [
              [
                  9 * math.sqrt(2),
                  -4 * math.sqrt(2),
                  -2,
                  -2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
              ],
              [
                  9 * math.sqrt(2),
                  -4 * math.sqrt(2),
                  -2,
                  -2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
                  -math.sqrt(2) / 2,
              ],
          ]
      )
      orig.columns = X.columns
      assert check_if_dataframes_are_equal(res, orig)
  
file_path: sktime/sktime/transformations/panel/tests/test_dwt.py
imports: import math
  import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.dwt import DWTTransformer
  from sktime.utils._testing.panel import _make_nested_from_array
label_desc: Use image node_id 5 for calling a global function with example usage: test_dwt_performs_correctly_along_each_dim() without return types