code: def _create_examples(cls, lines, set_type):
      examples = []
      for line in lines:
          examples.append(
              Example(
                  # NOTE: WSCTask.super_glue_format_preds() is dependent on this guid format.
                  guid="%s-%s" % (set_type, line["idx"]),
                  text=line["text"],
                  span1_idx=line["target"]["span1_index"],
                  span2_idx=line["target"]["span2_index"],
                  span1_text=line["target"]["span1_text"],
                  span2_text=line["target"]["span2_text"],
                  label=line["label"]
                  if set_type != "test"
                  else cls.LABELS[-1],
              )
          )
      return examples
  
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 5 for calling the WSCTask obj's underlying member method code with example usage: obj._create_examples(cls, lines, set_type) and returns: examples