code: def test_aamp_identical_subsequence_self_join():
      identical = np.random.rand(8)
      T_A = np.random.rand(20)
      T_A[1 : 1 + identical.shape[0]] = identical
      T_A[11 : 11 + identical.shape[0]] = identical
      m = 3
      ref_mp = naive.aamp(T_A, m)
      comp_mp = aamp(T_A, m, ignore_trivial=True)
      naive.replace_inf(ref_mp)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(
          ref_mp[:, 0],
          comp_mp[:, 0],
          decimal=config.STUMPY_TEST_PRECISION,
      )  # ignore indices
  
      comp_mp = aamp(pd.Series(T_A), m, ignore_trivial=True)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(
          ref_mp[:, 0],
          comp_mp[:, 0],
          decimal=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 7 for calling a global function with example usage: test_aamp_identical_subsequence_self_join() without return types