code: def test_mpdisted_with_isconstant(T_A, T_B, dask_cluster):
      with Client(dask_cluster) as dask_client:
          m = 3
          T_A_subseq_isconstant = np.random.choice(
              [True, False], size=len(T_A) - m + 1, replace=True
          )
          T_B_subseq_isconstant = np.random.choice(
              [True, False], size=len(T_B) - m + 1, replace=True
          )
          ref_mpdist = naive.mpdist(
              T_A,
              T_B,
              m,
              T_A_subseq_isconstant=T_A_subseq_isconstant,
              T_B_subseq_isconstant=T_B_subseq_isconstant,
          )
          comp_mpdist = mpdisted(
              dask_client,
              T_A,
              T_B,
              m,
              T_A_subseq_isconstant=T_A_subseq_isconstant,
              T_B_subseq_isconstant=T_B_subseq_isconstant,
          )
  
          npt.assert_almost_equal(ref_mpdist, comp_mpdist)
  
file_path: stumpy/tests/test_mpdist.py
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from dask.distributed import Client, LocalCluster
  from stumpy import mpdist, mpdisted
  from stumpy.mpdist import _mpdist_vect
label_desc: Use image node_id 10 for calling a global function with example usage: test_mpdisted_with_isconstant(T_A, T_B, dask_cluster) without return types