code: def test_motifs(T, m):
      if T.ndim > 1:
          T = T.copy()
          T = T[0]
  
      mp = stumpy.aamp(T, m)
      ref = stumpy.aamp_motifs(T, mp[:, 0])
      comp = stumpy.motifs(T, mp[:, 0], normalize=False)
      npt.assert_almost_equal(ref, comp)
  
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 22 for calling a global function with example usage: test_motifs(T, m) without return types