code: def _protected_division(x1, x2):
      """Closure of division (x1/x2) for zero denominator."""
      with np.errstate(divide="ignore", invalid="ignore"):
          return np.where(np.abs(x2) > 0.001, np.divide(x1, x2), 1.0)
  
file_path: gplearn/gplearn/functions.py
imports: import numpy
  from joblib import wrap_non_picklable_objects
label_desc: Use image node_id 2 for calling a global function with example usage: _protected_division(x1, x2) and returns: np