code: def binary_accuracy(y_true, y_pred, threshold=0.5):
      return ivy.mean(
          _binary_matches(y_true, y_pred, threshold), axis=-1
      )
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 5 for calling a global function with example usage: binary_accuracy(y_true, y_pred, threshold) and returns: ivy