code: def test_aamp_identical_subsequence_A_B_join():
      identical = np.random.rand(8)
      T_A = np.random.rand(20)
      T_B = np.random.rand(20)
      T_A[1 : 1 + identical.shape[0]] = identical
      T_B[11 : 11 + identical.shape[0]] = identical
      m = 3
      ref_mp = naive.aamp(T_A, m, T_B=T_B)
      comp_mp = aamp(T_A, m, T_B, ignore_trivial=False)
      naive.replace_inf(ref_mp)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(
          ref_mp[:, 0], comp_mp[:, 0], config.STUMPY_TEST_PRECISION
      )  # ignore indices
  
      comp_mp = aamp(
          pd.Series(T_A), m, pd.Series(T_B), ignore_trivial=False
      )
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(
          ref_mp[:, 0], comp_mp[:, 0], config.STUMPY_TEST_PRECISION
      )  # ignore indices
  
      # Swap inputs
      ref_mp = naive.aamp(T_B, m, T_B=T_A)
      comp_mp = aamp(T_B, m, T_A, ignore_trivial=False)
      naive.replace_inf(ref_mp)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(
          ref_mp[:, 0], comp_mp[:, 0], config.STUMPY_TEST_PRECISION
      )
  
file_path: stumpy/tests/test_aamp.py
imports: import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from stumpy import aamp, config
label_desc: Use image node_id 8 for calling a global function with example usage: test_aamp_identical_subsequence_A_B_join() without return types