class_docstr: Module level tests for all sktime aligners.
class_docstr_tok: ["Module","level","tests","for","all","sktime","aligners","."]
docstr: Test that get_distance returns an scalar.
docstr_tok: ["Test","that","get_distance","returns","an","scalar","."]
code: def test_get_distance(self, estimator_instance):
      """Test that get_distance returns an scalar."""
      if not estimator_instance.get_tag("capability:distance"):
          return None
  
      X = [_make_series(n_columns=2), _make_series(n_columns=2)]
      dist = estimator_instance.fit(X).get_distance()
      assert isinstance(dist, float)
  
file_path: sktime/sktime/alignment/tests/test_all_aligners.py
imports: import numpy
  import pandas
  from sktime.datatypes._check import check_raise
  from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 4 for calling the TestAllAligners obj's underlying member method code with example usage: obj.test_get_distance(estimator_instance) and returns: None