code: def _create_examples(cls, lines, set_type):
      examples = []
      for line in lines:
          span1 = ExclusiveSpan(int(line["start1"]), int(line["end1"]))
          span2 = ExclusiveSpan(int(line["start2"]), int(line["end2"]))
          # Note, the chosen word may be different (e.g. different tenses) in sent1 and sent2,
          #   hence we don't do an assert here.
          examples.append(
              Example(
                  # NOTE: WiCTask.super_glue_format_preds() is dependent on this guid format.
                  guid="%s-%s" % (set_type, line["idx"]),
                  sentence1=line["sentence1"],
                  sentence2=line["sentence2"],
                  word=line["word"],
                  span1=span1,
                  span2=span2,
                  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
  import string
  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.python.io import read_json_lines
  from jiant.utils import retokenize
  from jiant.utils.tokenization_normalization import normalize_tokenizations
label_desc: Use image node_id 5 for calling the WiCTask obj's underlying member method code with example usage: obj._create_examples(cls, lines, set_type) and returns: examples