code: def test_maamp_multi_distance_profile(T, m):
      _T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
      for p in [1.0, 2.0, 3.0]:
          for query_idx in range(_T.shape[0] - m + 1):
              ref_D = naive.maamp_multi_distance_profile(
                  query_idx, _T, m, p=p
              )
  
              comp_D = maamp_multi_distance_profile(
                  query_idx, _T, m, p=p
              )
  
              npt.assert_almost_equal(ref_D, comp_D)
  
imports: import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from stumpy import config, core, maamp, maamp_mdl, maamp_subspace
  from stumpy.maamp import _get_first_maamp_profile, _multi_mass_absolute, maamp_multi_distance_profile
label_desc: Use image node_id 3 for calling a global function with example usage: test_maamp_multi_distance_profile(T, m) without return types