code: def _compute(self, predictions, references):
      if self.config_name == "cola":
          return {
              "matthews_correlation": matthews_corrcoef(
                  references, predictions
              )
          }
      elif self.config_name == "stsb":
          return pearson_and_spearman(predictions, references)
      elif self.config_name in ["mrpc", "qqp"]:
          return acc_and_f1(predictions, references)
      elif self.config_name in [
          "sst2",
          "mnli",
          "mnli_mismatched",
          "mnli_matched",
          "qnli",
          "rte",
          "wnli",
          "hans",
      ]:
          return {"accuracy": simple_accuracy(predictions, references)}
      else:
          raise KeyError(
              "You should supply a configuration name selected in "
              '["sst2", "mnli", "mnli_mismatched", "mnli_matched", '
              '"cola", "stsb", "mrpc", "qqp", "qnli", "rte", "wnli", "hans"]'
          )
  
file_path: evaluate/metrics/glue/glue.py
imports: import datasets
  from scipy.stats import pearsonr, spearmanr
  from sklearn.metrics import f1_score, matthews_corrcoef
  import evaluate
label_desc: Use image node_id 2 for calling the Glue obj's underlying member method code with example usage: obj._compute(predictions, references) and returns: dict, pearson_and_spearman, acc_and_f1, dict