code: def test_motifs_nneighbors(self):
      a = np.array(
          [0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0]
      )
      mp = np.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
      mpi = np.array([4.0, 5.0, 6.0, 7.0, 0.0, 1.0, 2.0, 3.0, 0.0])
  
      motif, _ = motifs(a, (mp, mpi), n_neighbors=2)
      motif_outcome = [[0, 4]]
  
      assert motif == motif_outcome
  
file_path: matrixprofile-ts/tests/test_motifs.py
imports: import sys
  from matrixprofile.motifs import *
  import numpy
  import pytest
label_desc: Use image node_id 5 for calling the TestClass obj's underlying member method code with example usage: obj.test_motifs_nneighbors() without return types