code: def _run_aggr_dist_test(x, y):
      # default parametersc
      default_params = AggrDist(transformer=ScipyDist())
      default_params_transformation = np.around(
          (default_params.transform(x, y)), decimals=3
      )
  
      assert np.array_equal(
          np.array(
              [
                  [1.714, 1.49, 1.53, 1.699, 1.849],
                  [1.479, 1.36, 1.358, 1.476, 1.471],
                  [1.553, 1.476, 1.354, 1.523, 1.425],
                  [1.641, 1.704, 1.603, 1.698, 1.37],
              ]
          ),
          default_params_transformation,
      ), "Error occurred testing on default parameters, result is not correct"
  
      for transformer in PAIRWISE_TRANSFORMERS_TAB:
          for aggfunc in AGGFUNCS:
              aggfunc_params = AggrDist(
                  transformer=transformer(), aggfunc=aggfunc
              )
              aggfunc_params_transformation = aggfunc_params.transform(
                  x, y
              )
              assert isinstance(
                  aggfunc_params_transformation, np.ndarray
              ), (
                  f"Error occurred testing on following parameters"
                  f"transformer={transformer}, aggfunc={aggfunc}"
              )
  
imports: import numpy
  from sktime.datatypes import convert_to
  from sktime.dists_kernels.compose_tab_to_panel import AggrDist
  from sktime.dists_kernels.scipy_dist import ScipyDist
  from sktime.registry import all_estimators
  from sktime.utils._testing.panel import make_transformer_problem
label_desc: Use image node_id 2 for calling a global function with example usage: _run_aggr_dist_test(x, y) without return types