code: def evaluate_f1_score(pred, label):
      pred = np.round(pred, 0).astype(np.int16)
      pred = pred.flatten()
      label = label.flatten()
      return f1_score(y_pred=pred, y_true=label)
  
label_desc: Use image node_id 1 for calling a global function with example usage: evaluate_f1_score(pred, label) and returns: f1_score