code: def make_examples(nlp, data=TRAIN_DATA):
      train_examples = []
      for t in data:
          eg = Example.from_dict(nlp.make_doc(t[0]), t[1])
          train_examples.append(eg)
      return train_examples
  
file_path: spaCy/spacy/tests/pipeline/test_span_finder.py
imports: import pytest
  from thinc.api import Config
  from spacy import util
  from spacy.lang.en import English
  from spacy.language import Language
  from spacy.pipeline.span_finder import span_finder_default_config
  from spacy.tokens import Doc
  from spacy.training import Example
  from spacy.util import fix_random_seed, make_tempdir, registry
label_desc: Use image node_id 1 for calling a global function with example usage: make_examples(nlp, data) and returns: train_examples