class_docstr: Module level tests for all sktime pairwise transformers (tabular).
class_docstr_tok: ["Module","level","tests","for","all","sktime","pairwise","transformers","(","tabular",")","."]
docstr: Main test function for pairwise transformers on tabular data.
docstr_tok: ["Main","test","function","for","pairwise","transformers","on","tabular","data","."]
code: def test_pairwise_transformers_tabular(
      self, estimator_instance, scenario
  ):
      """Main test function for pairwise transformers on tabular data."""
      trafo_name = type(estimator_instance).__name__
      dist_mat = scenario.run(
          estimator_instance, method_sequence=["transform"]
      )
  
      X = scenario.args["transform"]["X"]
      len_X = len(scenario.args["transform"]["X"])
      X2 = scenario.args["transform"].get("X2", X)
      len_X2 = len(X2)
  
      assert isinstance(
          dist_mat, np.ndarray
      ), f"Shape of matrix returned by transform is wrong for {trafo_name}"
      assert (
          # this is only true as long as fixture are of mtypes where len = n_instances
          # should that change, use check_is_mtype to get n_instances metadata
          dist_mat.shape
          == (len_X, len_X2)
      ), f"Shape of matrix returned by transform is wrong for {trafo_name}"
  
file_path: sktime/sktime/dists_kernels/tests/test_all_dist_kernels.py
imports: import numpy
  from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester
label_desc: Use image node_id 1 for calling the TestAllPairwiseTransformers obj's underlying member method code with example usage: obj.test_pairwise_transformers_tabular(estimator_instance, scenario) without return types