code: def precision(y_true, y_pred):
      from tensorflow.keras import backend as K
  
      true_positives = K.sum(K.round(K.clip(y_true * y_pred, 0, 1)))
      predicted_positives = K.sum(K.round(K.clip(y_pred, 0, 1)))
      precision = true_positives / (predicted_positives + K.epsilon())
      return precision
  
file_path: talos/talos/metrics/keras_metrics.py
label_desc: Use image node_id 9 for calling a global function with example usage: precision(y_true, y_pred) and returns: precision