code: def test_misalignment_spans(tasks_base_path):
      example_txt = """George B-NAME
  Washington I-NAME
  went O
  \t O
  Washington B-CITY
  and O
  enjoyed O
  some O
  coffee B-BEVERAGE
  """
      train_path = tasks_base_path / "tmp" / "train.txt"
      try:
          train_path.parent.mkdir(exist_ok=True, parents=True)
          train_path.write_text(example_txt, encoding="utf-8")
          corpus = ColumnCorpus(
              data_folder=train_path.parent,
              column_format={0: "text", 1: "ner"},
              train_file=train_path.name,
          )
          sentence = corpus.train[0]
          span_texts = [span.text for span in sentence.get_spans("ner")]
          assert span_texts == [
              "George Washington",
              "Washington",
              "coffee",
          ]
      finally:
          train_path.unlink()
          train_path.parent.rmdir()
  
imports: import os
  import pytest
  import flair
  from flair.data import Corpus, Dictionary, Label, Sentence
  from flair.datasets import ColumnCorpus, FlairDatapointDataset, SentenceDataset
label_desc: Use image node_id 17 for calling a global function with example usage: test_misalignment_spans(tasks_base_path) without return types