code: def test_calc_exclusion_stop():
      ts = [1, 2, 3, 4, 5, 6, 7, 8]
      m = 4
      idx = 0
      profile_len = scrimp.calc_profile_len(len(ts), m)  # 4
      exclusion_zone = scrimp.calc_exclusion_zone(m)  # 1
      stop = scrimp.calc_exclusion_stop(
          idx, exclusion_zone, profile_len
      )
      expected_stop = 1
      assert expected_stop == stop
  
      idx = 2
      stop = scrimp.calc_exclusion_stop(
          idx, exclusion_zone, profile_len
      )
      expected_stop = 3
      assert expected_stop == stop
  
      idx = 3
      stop = scrimp.calc_exclusion_stop(
          idx, exclusion_zone, profile_len
      )
      expected_stop = 4
      assert expected_stop == stop
  
      idx = 4
      stop = scrimp.calc_exclusion_stop(
          idx, exclusion_zone, profile_len
      )
      expected_stop = 5
      assert expected_stop == stop
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import pytest
  import numpy
  import matrixprofile
  from matrixprofile import scrimp
label_desc: Use image node_id 17 for calling a global function with example usage: test_calc_exclusion_stop() without return types