code: def test_naive_match_exclusion_zone():
      # The query appears as a perfect match at location 1 and as very close matches
      # (z-normalized distance of 0.05) at location 0, 5 and 9.
      # However, since we apply an exclusion zone, the match at index 0 is ignored
      T = np.array(
          [0.1, 1.0, 2.0, 3.0, -1.0, 0.1, 1.0, 2.0, -0.5, 0.2, 2.0, 4.0]
      )
      Q = np.array([0.0, 1.0, 2.0])
      m = Q.shape[0]
      excl_zone = int(np.ceil(m / 4))
  
      left = [
          [0, 1],
          [
              naive.distance(core.z_norm(Q), core.z_norm(T[5 : 5 + m])),
              5,
          ],
          [
              naive.distance(core.z_norm(Q), core.z_norm(T[9 : 9 + m])),
              9,
          ],
      ]
      right = list(
          naive_match(
              Q,
              T,
              excl_zone=excl_zone,
              max_distance=0.1,
          )
      )
      # To avoid sorting errors we first sort based on distance and then based on indices
      right.sort(key=lambda x: (x[1], x[0]))
  
      npt.assert_almost_equal(left, right)
  
imports: import functools
  import naive
  import numpy
  import numpy.testing
  import pytest
  from stumpy import core, match, motifs
label_desc: Use image node_id 8 for calling a global function with example usage: test_naive_match_exclusion_zone() without return types