docstr: Reformat this task's raw predictions to have the structure expected by SuperGLUE.
docstr_tok: ["Reformat","this","task","'s","raw","predictions","to","have","the","structure","expected","by","SuperGLUE","."]
code: def super_glue_format_preds(cls, pred_dict):
      """Reformat this task's raw predictions to have the structure expected by SuperGLUE."""
      lines = []
      for pred, guid in zip(
          list(pred_dict["preds"]), list(pred_dict["guids"])
      ):
          lines.append(
              {
                  "idx": int(guid.split("-")[1]),
                  "label": str(cls.LABELS[pred]),
              }
          )
      return lines
  
imports: import numpy
  import torch
  from dataclasses import dataclass
  from typing import List
  from jiant.tasks.core import BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, SuperGlueMixin, Task, TaskTypes
  from jiant.tasks.lib.templates.shared import labels_to_bimap, add_cls_token, create_input_set_from_tokens_and_segments
  from jiant.tasks.utils import truncate_sequences, ExclusiveSpan
  from jiant.utils import retokenize
  from jiant.utils.python.io import read_json_lines
  from jiant.utils.tokenization_normalization import normalize_tokenizations
label_desc: Use image node_id 6 for calling the WSCTask obj's underlying member method code with example usage: obj.super_glue_format_preds(cls, pred_dict) and returns: lines