code: def _binary_prediction(obj, raw_pred):
      # apply activation function
      pred = obj.pred_transform(raw_pred)
      # apply probability thresholding
      return ivy.where(pred >= 0.5, 1.0, 0.0)
  
file_path: ivy/ivy/functional/frontends/xgboost/core.py
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .gbm import GBLinear
label_desc: Use image node_id 1 for calling a global function with example usage: _binary_prediction(obj, raw_pred) and returns: ivy