code: def test_stumpi(T, m):
      if T.ndim > 1:
          T = T.copy()
          T = T[0]
  
      ref_stream = stumpy.aampi(T, m)
      comp_stream = stumpy.stumpi(T, m, normalize=False)
      for i in range(10):
          t = np.random.rand()
          ref_stream.update(t)
          comp_stream.update(t)
          npt.assert_almost_equal(ref_stream.P_, comp_stream.P_)
  
imports: import naive
  import numpy
  import numpy.testing
  from dask.distributed import Client, LocalCluster
  from numba import cuda
  import stumpy
  from stumpy.maamp import maamp_multi_distance_profile
  from stumpy.mstump import multi_distance_profile
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_stumpi(T, m) without return types