code: def accuracy(prediction, ground_truth, **kwargs):
      if isinstance(prediction, str) and isinstance(ground_truth, str):
          if kwargs.get("only_compare_prefix", False):
              prediction = prediction[: len(ground_truth)]
          return prediction.lower() == ground_truth.lower()
      else:
          return prediction == ground_truth
  
file_path: OpenPrompt/openprompt/utils/crossfit_metrics.py
imports: import numpy
  import string
  import re
  from collections import Counter
  from sklearn.metrics import matthews_corrcoef, f1_score
  from scipy.stats import pearsonr, spearmanr
  from rouge import Rouge
label_desc: Use image node_id 4 for calling a global function with example usage: accuracy(prediction, ground_truth) and returns: unknown, unknown