code: def calc_exclusion_stop(idx, exclusion_zone, profile_len):
      return int(np.min([profile_len, idx + exclusion_zone]))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import math
  import time
  import warnings
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: calc_exclusion_stop(idx, exclusion_zone, profile_len) and returns: int