code: def naive_nnmark(I):
      nnmark = np.zeros(I.shape[0], dtype=np.int64)
      for i in range(nnmark.shape[0]):
          j = I[i]
          nnmark[min(i, j)] = nnmark[min(i, j)] + 1
          nnmark[max(i, j)] = nnmark[max(i, j)] - 1
  
      return np.cumsum(nnmark)
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import aamp, core, floss, fluss, stump
  from stumpy.floss import _cac, _iac, _nnmark, _rea
label_desc: Use image node_id 1 for calling a global function with example usage: naive_nnmark(I) and returns: np