code: def test_multi_distance_profile(T, m):
      for query_idx in range(T.shape[0] - m + 1):
          ref_D = naive.multi_distance_profile(query_idx, T, m)
  
          M_T, Σ_T = core.compute_mean_std(T, m)
          comp_D = multi_distance_profile(query_idx, T, m)
  
          npt.assert_almost_equal(ref_D, comp_D)
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from stumpy import config, core, mdl, mstump, subspace
  from stumpy.mstump import _get_first_mstump_profile, _get_multi_QT, _multi_mass, multi_distance_profile
label_desc: Use image node_id 4 for calling a global function with example usage: test_multi_distance_profile(T, m) without return types