code: def test_deterministic_ostinato(seed):
      m = 50
      np.random.seed(seed)
      Ts = [np.random.rand(n) for n in [64, 128, 256]]
  
      for p in [1.0, 2.0, 3.0]:
          ref_radius, ref_Ts_idx, ref_subseq_idx = naive.aamp_ostinato(
              Ts, m, p=p
          )
          (
              comp_radius,
              comp_Ts_idx,
              comp_subseq_idx,
          ) = stumpy.aamp_ostinato(Ts, m, p=p)
  
          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_aamp_ostinato.py
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from dask.distributed import Client, LocalCluster
  import stumpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_deterministic_ostinato(seed) without return types