code: def _is_trivial_match(
      candidate, change_points, n_timepoints, exclusion_radius=0.05
  ):
      """Check if a candidate change point is in close proximity to other change points.
  
      Parameters
      ----------
      candidate : int
          A single candidate change point. Will be chosen if non-trivial match based
          on exclusion_radius.
      change_points : list, dtype=int
          List of change points chosen so far
      n_timepoints : int
          Total length
      exclusion_radius : int
          Exclusion Radius for change points to be non-trivial matches
  
      Returns
      -------
      trivial_match: bool
          If the 'candidate' change point is a trivial match to the ones in change_points
      """
      change_points = [0] + change_points + [n_timepoints]
      exclusion_radius = np.int64(n_timepoints * exclusion_radius)
  
      for change_point in change_points:
          left_begin = max(0, change_point - exclusion_radius)
          right_end = min(n_timepoints, change_point + exclusion_radius)
          if candidate in range(left_begin, right_end):
              return True
  
      return False
  
file_path: sktime/sktime/annotation/clasp.py
imports: from sktime.annotation.base import BaseSeriesAnnotator
  from queue import PriorityQueue
  import numpy
  import pandas
  from sktime.transformations.series.clasp import ClaSPTransformer
  from sktime.utils.validation.series import check_series
label_desc: Use image node_id 2 for calling a global function with example usage: _is_trivial_match(candidate, change_points, n_timepoints, exclusion_radius) and returns: False, True