code: def update_bias_residual(dbias, gpair):
      # ToDo: skip update where dbias==0 and modify for several biases
      # filter out updates where hessians are less than zero
      mask = ivy.where(gpair[:, 1] < 0.0, 0.0, 1.0)
  
      # we only update gradients, hessians remain the same
      return ivy.expand_dims(
          gpair[:, 0] + gpair[:, 1] * mask * dbias, axis=1
      )
  
imports: import ivy
label_desc: Use image node_id 4 for calling a global function with example usage: update_bias_residual(dbias, gpair) and returns: ivy