docstr: Returns a tuple of (index, prediction) as expected by GLUE.
docstr_tok: ["Returns","a","tuple","of","(","index",",","prediction",")","as","expected","by","GLUE","."]
code: def get_glue_preds(cls, pred_dict):
      """Returns a tuple of (index, prediction) as expected by GLUE."""
      indexes = []
      predictions = []
      for pred, guid in zip(
          list(pred_dict["preds"]), list(pred_dict["guids"])
      ):
          indexes.append(int(guid.split("-")[1]))
          predictions.append(str(round(pred, 3)))
      return (indexes, predictions)
  
imports: import numpy
  import torch
  from dataclasses import dataclass
  from typing import List
  from jiant.tasks.core import BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, GlueMixin, Task, TaskTypes
  from jiant.tasks.lib.templates.shared import construct_double_input_tokens_and_segment_ids, create_input_set_from_tokens_and_segments
  from jiant.utils.python.io import read_jsonl
label_desc: Use image node_id 5 for calling the StsbTask obj's underlying member method code with example usage: obj.get_glue_preds(cls, pred_dict) and returns: indexes,  predictions