code: def test_mpdist_with_isconstant(T_A, T_B):
      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 = mpdist(
          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 6 for calling a global function with example usage: test_mpdist_with_isconstant(T_A, T_B) without return types