code: def test_mstumped_with_isconstant(dask_cluster):
      d = 3
      n = 64
      m = 8
  
      T = np.random.uniform(-1000, 1000, size=[d, n])
      T_subseq_isconstant = [
          None,
          np.random.choice([True, False], n - m + 1, replace=True),
          functools.partial(
              naive.isconstant_func_stddev_threshold,
              quantile_threshold=0.05,
          ),
      ]
  
      excl_zone = int(np.ceil(m / 4))
      with Client(dask_cluster) as dask_client:
          ref_P, ref_I = naive.mstump(
              T, m, excl_zone, T_subseq_isconstant=T_subseq_isconstant
          )
          comp_P, comp_I = mstumped(
              dask_client, T, m, T_subseq_isconstant=T_subseq_isconstant
          )
  
          npt.assert_almost_equal(ref_P, comp_P)
          npt.assert_almost_equal(ref_I, comp_I)
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from dask.distributed import Client, LocalCluster
  from stumpy import config, mstumped
label_desc: Use image node_id 14 for calling a global function with example usage: test_mstumped_with_isconstant(dask_cluster) without return types