code: def test_getitem_dunder():
      """Tests creation of pairwise panel trafo pipelines using mul dunder."""
      t = EditDist()
  
      idx_sub = ["var_1", "var_2"]
  
      X1_sub = X1.loc[:, idx_sub]
      X2_sub = X2.loc[:, idx_sub]
  
      # compare manual subsetting with dunder subsetting
      t_sub = t[idx_sub]
  
      # manual: subset then transform
      m_manual = t.transform(X1_sub, X2_sub)
  
      # dunder: apply the subsetted transformer
      m_dunder = t_sub.transform(X1, X2)
  
      assert np.allclose(m_manual, m_dunder)
  
      # this should not be the same as distance on all columns
      m = t.transform(X1, X2)
      assert not np.allclose(m_dunder, m)
  
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 6 for calling a global function with example usage: test_getitem_dunder() without return types