code: def test_aamp_constant_subsequence_self_join():
      T_A = np.concatenate(
          (np.zeros(20, dtype=np.float64), np.ones(5, dtype=np.float64))
      )
      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]
      )  # 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])
  
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 4 for calling a global function with example usage: test_aamp_constant_subsequence_self_join() without return types