code: def test_distance_params(dist: MetricInfo):
      """Test parametisation of distance callables."""
      # skip test if distance function/class have not changed
      if not run_test_for_class(
          [dist.dist_func, dist.dist_instance.__class__]
      ):
          return None
  
      if dist.canonical_name in DIST_PARAMS:
          _test_distance_params(
              DIST_PARAMS[dist.canonical_name],
              dist.dist_func,
              dist.canonical_name,
          )
  
file_path: sktime/sktime/distances/tests/test_numba_distance_parameters.py
imports: from typing import Callable, Dict, List
  import numpy
  import pytest
  from sktime.distances import distance, distance_factory
  from sktime.distances._distance import _METRIC_INFOS
  from sktime.distances._numba_utils import to_numba_timeseries
  from sktime.distances.base import MetricInfo
  from sktime.distances.tests._expected_results import _expected_distance_results_params
  from sktime.distances.tests._utils import create_test_distance_numpy
  from sktime.tests.test_switch import run_test_for_class
  from sktime.utils.numba.njit import njit
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 3 for calling a global function with example usage: test_distance_params(dist) and returns: None