code: def test_deterministic_ostinatoed_with_isconstant(seed, dask_cluster):
      isconstant_custom_func = functools.partial(
          naive.isconstant_func_stddev_threshold,
          quantile_threshold=0.05,
      )
  
      with Client(dask_cluster) as dask_client:
          m = 50
          np.random.seed(seed)
          Ts = [np.random.rand(n) for n in [64, 128, 256]]
  
          l = 64 - m + 1
          subseq_isconsant = np.full(l, 0, dtype=bool)
          subseq_isconsant[np.random.randint(0, l)] = True
          Ts_subseq_isconstant = [
              subseq_isconsant,
              None,
              isconstant_custom_func,
          ]
  
          ref_radius, ref_Ts_idx, ref_subseq_idx = naive.ostinato(
              Ts, m, Ts_subseq_isconstant=Ts_subseq_isconstant
          )
          comp_radius, comp_Ts_idx, comp_subseq_idx = stumpy.ostinatoed(
              dask_client,
              Ts,
              m,
              Ts_subseq_isconstant=Ts_subseq_isconstant,
          )
  
          npt.assert_almost_equal(ref_radius, comp_radius)
          npt.assert_almost_equal(ref_Ts_idx, comp_Ts_idx)
          npt.assert_almost_equal(ref_subseq_idx, comp_subseq_idx)
  
file_path: stumpy/tests/test_ostinato.py
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from dask.distributed import Client, LocalCluster
  import stumpy
label_desc: Use image node_id 7 for calling a global function with example usage: test_deterministic_ostinatoed_with_isconstant(seed, dask_cluster) without return types