code: def test_aamp_mmotifs_max_distance(T):
      motif_distances_ref = np.array(
          [
              [
                  0.0,
                  1.41421356,
                  4.46430286,
                  6.85346628,
                  8.207923,
                  8.50529247,
              ]
          ]
      )
      motif_indices_ref = np.array([[2, 9, 0, 11, 7, 5]])
      motif_subspaces_ref = [np.array([3])]
      motif_mdls_ref = [
          np.array([244.0, 260.67970001, 279.86313714, 281.35940001])
      ]
  
      m = 4
      excl_zone = int(np.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))
      P, I = naive.maamp(T, m, excl_zone)
      (
          motif_distances_cmp,
          motif_indices_cmp,
          motif_subspaces_cmp,
          motif_mdls_cmp,
      ) = aamp_mmotifs(T, P, I, max_distance=np.inf)
  
      npt.assert_array_almost_equal(
          motif_distances_ref, motif_distances_cmp
      )
      npt.assert_array_almost_equal(
          motif_indices_ref, motif_indices_cmp
      )
      npt.assert_array_almost_equal(
          motif_subspaces_ref, motif_subspaces_cmp
      )
      npt.assert_array_almost_equal(motif_mdls_ref, motif_mdls_cmp)
  
file_path: stumpy/tests/test_aamp_mmotifs.py
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import aamp_mmotifs, config
label_desc: Use image node_id 2 for calling a global function with example usage: test_aamp_mmotifs_max_distance(T) without return types