code: def test_aamp_nan_zero_mean_self_join():
      T = np.array([-1, 0, 1, np.inf, 1, 0, -1])
      m = 3
  
      ref_mp = naive.aamp(T, m)
      comp_mp = aamp(T, m, ignore_trivial=True)
  
      naive.replace_inf(ref_mp)
      naive.replace_inf(comp_mp)
      npt.assert_almost_equal(ref_mp, comp_mp)
  
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 11 for calling a global function with example usage: test_aamp_nan_zero_mean_self_join() without return types