code: def margin_gain(X, attribute, threshold):
      """Margin gain function."""
      margins = np.abs(X[:, attribute] - threshold)
      return np.min(margins)
  
file_path: sktime/sktime/classification/sklearn/_continuous_interval_tree_numba.py
imports: import math
  import numpy
  from sktime.utils.numba.njit import njit
  from sktime.utils.numba.stats import iqr, mean, numba_max, numba_min, slope, std
label_desc: Use image node_id 5 for calling a global function with example usage: margin_gain(X, attribute, threshold) and returns: np