code: def test_multi_distance_profile_with_isconstant_case1():
      # case1: `T_subseq_isconstant` is `np.ndarray`
      d = 3
      n = 64
      m = 8
  
      T = np.random.uniform(-1000, 1000, size=[d, n])
      T_subseq_isconstant = np.random.choice(
          [True, False], size=(d, n - m + 1), replace=True
      )
  
      for query_idx in range(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 25 for calling a global function with example usage: test_multi_distance_profile_with_isconstant_case1() without return types