code: def coordinate_delta(sum_grad, sum_hess, w, reg_alpha, reg_lambda):
      mask = ivy.where(sum_hess < 1e-5, 0.0, 1.0)
  
      sum_grad_l2 = sum_grad + reg_lambda * w
      sum_hess_l2 = sum_hess + reg_lambda
      tmp = w - sum_grad_l2 / sum_hess_l2
      return ivy.where(
          tmp >= 0,
          ivy.fmax(-(sum_grad_l2 + reg_alpha) / sum_hess_l2, -w) * mask,
          ivy.fmin(-(sum_grad_l2 - reg_alpha) / sum_hess_l2, -w) * mask,
      )
  
imports: import ivy
label_desc: Use image node_id 1 for calling a global function with example usage: coordinate_delta(sum_grad, sum_hess, w, reg_alpha, reg_lambda) and returns: ivy