class_docstr: Module level tests for all sktime aligners.
class_docstr_tok: ["Module","level","tests","for","all","sktime","aligners","."]
docstr: Test that get_alignment returns an alignment (iloc).
docstr_tok: ["Test","that","get_alignment","returns","an","alignment","(","iloc",")","."]
code: def test_get_alignment(self, estimator_instance):
      """Test that get_alignment returns an alignment (iloc)."""
      X = [_make_series(n_columns=2), _make_series(n_columns=2)]
      align = estimator_instance.fit(X).get_alignment()
  
      check_raise(align, mtype="alignment", scitype="Alignment")
  
      # integer indices from the alignment
      align0 = align["ind0"]
      align1 = align["ind1"]
      # there should not be any nan entries, as there are only 2 series
      assert not align0.isna().any()
      assert not align1.isna().any()
  
      if estimator_instance.get_tag("alignment_type") == "full":
          # all indices are present in an alignment matching
          assert set(align0) == set(range(len(X[0])))
          assert set(align1) == set(range(len(X[1])))
  
      # check multiple aligners
      # todo: replace this by scenarios
      if estimator_instance.get_tag("capability:multiple-alignment"):
          Xm = [_make_series(n_columns=2) for _ in range(3)]
          alignm = estimator_instance.fit(Xm).get_alignment()
          check_raise(alignm, mtype="alignment", scitype="Alignment")
  
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 1 for calling the TestAllAligners obj's underlying member method code with example usage: obj.test_get_alignment(estimator_instance) without return types