code: def test_dunders_with_constants(constant):
      """Tests creation of pairwise panel trafo pipelines using mul dunder."""
      t = EditDist()
  
      m = t.transform(X1, X2)
  
      tplusc = t + constant
  
      assert isinstance(tplusc, CombinedDistance)
      assert len(tplusc.pw_trafos) == 2
      assert tplusc.get_params()["operation"] == "+"
  
      mplusc = tplusc.transform(X1, X2)
      assert np.allclose(m + constant, mplusc)
  
      ttimesc = t * constant
  
      assert isinstance(ttimesc, CombinedDistance)
      assert len(ttimesc.pw_trafos) == 2
      assert ttimesc.get_params()["operation"] == "*"
  
      mtimesc = ttimesc.transform(X1, X2)
      assert np.allclose(m * constant, mtimesc)
  
file_path: sktime/sktime/dists_kernels/tests/test_dist_kernels_dunders.py
imports: import numpy
  import pytest
  from sktime.dists_kernels.algebra import CombinedDistance
  from sktime.dists_kernels.compose import PwTrafoPanelPipeline
  from sktime.dists_kernels.edit_dist import EditDist
  from sktime.utils._testing.panel import _make_panel_X
label_desc: Use image node_id 5 for calling a global function with example usage: test_dunders_with_constants(constant) without return types