code: def get_bias_gradient(gpair):
      # filter out pairs with negative hessians(should not be included in the sum)
      mask = ivy.where(gpair[:, 1] < 0.0, 0.0, 1.0)
  
      sum_grad = ivy.sum(gpair[:, 0] * mask)
      sum_hess = ivy.sum(gpair[:, 1] * mask)
      return sum_grad, sum_hess
  
imports: import ivy
label_desc: Use image node_id 3 for calling a global function with example usage: get_bias_gradient(gpair) and returns: sum_grad,  sum_hess