code: def test_multi_distance_profile_with_isconstant_case2():
      # case2: `T_subseq_isconstant` is `function`
      d = 3
      n = 64
      m = 8
  
      T = np.random.uniform(-1000, 1000, size=[d, n])
      T_subseq_isconstant = functools.partial(
          naive.isconstant_func_stddev_threshold,
          quantile_threshold=0.05,
      )
  
      query_idx = np.random.randint(0, n - m + 1)
  
      ref_D = naive.multi_distance_profile(
          query_idx, T, m, T_subseq_isconstant=T_subseq_isconstant
      )
  
      comp_D = multi_distance_profile(
          query_idx, T, m, T_subseq_isconstant=T_subseq_isconstant
      )
  
      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 26 for calling a global function with example usage: test_multi_distance_profile_with_isconstant_case2() without return types