code: def _create_examples(cls, lines, set_type):
      examples = []
      for i, line in enumerate(lines):
          if "gold_label" in line:
              # Loading from original data
              if line["gold_label"] == "-":
                  continue
              examples.append(
                  Example(
                      guid="%s-%s" % (set_type, i),
                      input_premise=line["sentence1"],
                      input_hypothesis=line["sentence2"],
                      label=line["gold_label"]
                      if set_type != "test"
                      else cls.LABELS[-1],
                  )
              )
          else:
              # Loading from HF Datasets data
              if line["label"] == -1:
                  continue
              examples.append(
                  Example(
                      guid="%s-%s" % (set_type, i),
                      input_premise=line["premise"],
                      input_hypothesis=line["hypothesis"],
                      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, Task, TaskTypes
  from jiant.tasks.lib.templates.shared import double_sentence_featurize, labels_to_bimap
  from jiant.utils.python.io import read_jsonl
label_desc: Use image node_id 4 for calling the SnliTask obj's underlying member method code with example usage: obj._create_examples(cls, lines, set_type) and returns: examples