code: def test_motifs_one_motif():
      # The top motif for m=3 is a [0 1 0] at indices 0, 5 and 9
      T = np.array(
          [
              0.0,
              1.0,
              0.0,
              -1.0,
              -1.0,
              0.0,
              1.0,
              0.0,
              -0.5,
              2.0,
              3.0,
              2.0,
          ]
      )
      m = 3
      max_motifs = 1
  
      left_indices = [[0, 5, 9]]
      left_profile_values = [[0.0, 0.0, 0.0]]
  
      mp = naive.stump(T, m)
      right_distance_values, right_indices = motifs(
          T,
          mp[:, 0],
          max_distance=lambda D: 0.001,  # Also test lambda functionality
          max_motifs=max_motifs,
          cutoff=np.inf,
      )
  
      npt.assert_array_equal(left_indices, right_indices)
      npt.assert_almost_equal(
          left_profile_values, right_distance_values
      )
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import core, match, motifs
label_desc: Use image node_id 4 for calling a global function with example usage: test_motifs_one_motif() without return types