code: def labeled_sentence(self):
      sentence = Sentence("I love NYC and hate OYC")
  
      sentence[2:3].add_label("nel", "New York City")
      sentence[5:6].add_label("nel", "Old York City")
      return sentence
  
file_path: flair/tests/models/test_entity_linker.py
imports: import pytest
  from flair.data import Sentence
  from flair.datasets import NEL_ENGLISH_AIDA
  from flair.embeddings import TransformerWordEmbeddings
  from flair.models import SpanClassifier
  from tests.model_test_utils import BaseModelTest
label_desc: Use image node_id 4 for calling the TestEntityLinker obj's underlying member method code with example usage: obj.labeled_sentence() and returns: sentence