code: def one_minus_f1_macro(y_true, y_pred, greater_is_better=False):
      return 1 - f1_score(y_true, y_pred, average="macro")
  
file_path: skll/tests/other/custom_metrics.py
imports: from sklearn.metrics import average_precision_score, f1_score, fbeta_score, precision_score, r2_score, roc_auc_score
label_desc: Use image node_id 5 for calling a global function with example usage: one_minus_f1_macro(y_true, y_pred, greater_is_better) and returns: unknown