code: def rectify(array: np.ndarray, threshold: float) -> np.ndarray:
      rectified = np.abs(array).max(1)
      rectified[rectified <= threshold] = threshold
      rectified /= threshold
      return rectified
  
imports: import numpy
  import statsmodels.api
label_desc: Use image node_id 18 for calling a global function with example usage: rectify(array, threshold) and returns: rectified