code: def test_aamp_motifs_one_motif():
      # The top motif for m=3 is a [0 1 0] at indices 0 and 5, while the occurrence
      # at index 9 is not a motif in the aamp case.
      T = np.array(
          [
              0.0,
              1.0,
              0.0,
              -1.0,
              -1.0,
              0.0,
              1.0,
              0.0,
              -0.5,
              2.0,
              3.0,
              2.0,
          ]
      )
      m = 3
      max_motifs = 1
  
      left_indices = [[0, 5]]
      left_profile_values = [[0.0, 0.0]]
  
      for p in [1.0, 2.0, 3.0]:
          mp = naive.aamp(T, m, p=p)
          right_distance_values, right_indices = aamp_motifs(
              T,
              mp[:, 0],
              max_motifs=max_motifs,
              max_distance=0.001,
              cutoff=np.inf,
              p=p,
          )
  
          npt.assert_array_equal(left_indices, right_indices)
          npt.assert_almost_equal(
              left_profile_values, right_distance_values, decimal=4
          )
  
file_path: stumpy/tests/test_aamp_motifs.py
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import aamp_match, aamp_motifs, core
label_desc: Use image node_id 2 for calling a global function with example usage: test_aamp_motifs_one_motif() without return types