code: def _create_examples(cls, lines, set_type):
      examples = []
      for line_num, line in enumerate(lines):
          for target_num, target in enumerate(line["targets"]):
              span1 = target["span1"]
              span2 = target["span2"]
              examples.append(
                  Example(
                      guid="%s-%s-%s"
                      % (set_type, line_num, target_num),
                      text=line["text"],
                      span1=span1,
                      span2=span2,
                      labels=target["label"]
                      if set_type != "test"
                      else [cls.LABELS[-1]],
                  )
              )
      return examples
  
file_path: jiant/jiant/tasks/lib/edge_probing/spr2.py
imports: from dataclasses import dataclass
  from jiant.tasks.lib.templates.shared import labels_to_bimap
  from jiant.tasks.lib.templates import edge_probing_two_span
  from jiant.utils.python.io import read_json_lines
label_desc: Use image node_id 5 for calling the Spr2Task obj's underlying member method code with example usage: obj._create_examples(cls, lines, set_type) and returns: examples