code: def test_load_span_data(tasks_base_path):
      # load column dataset with one entry
      dataset = flair.datasets.ColumnDataset(
          tasks_base_path / "span_labels" / "span_first.txt",
          column_name_map={0: "text", 1: "ner"},
      )
  
      assert len(dataset) == 1
      assert dataset[0][2].text == "RAB"
      assert dataset[0][2].get_label("ner").value == "PARTA"
  
      # load column dataset with two entries
      dataset = flair.datasets.ColumnDataset(
          tasks_base_path / "span_labels" / "span_second.txt",
          column_name_map={0: "text", 1: "ner"},
      )
  
      assert len(dataset) == 2
      assert dataset[1][2].text == "RAB"
      assert dataset[1][2].get_label("ner").value == "PARTA"
  
      # load column dataset with three entries
      dataset = flair.datasets.ColumnDataset(
          tasks_base_path / "span_labels" / "span_third.txt",
          column_name_map={0: "text", 1: "ner"},
      )
  
      assert len(dataset) == 3
      assert dataset[2][2].text == "RAB"
      assert dataset[2][2].get_label("ner").value == "PARTA"
  
imports: import copy
  import shutil
  import pytest
  import flair
  import flair.datasets
  from flair.data import MultiCorpus, Sentence
  from flair.datasets import ColumnCorpus
  from flair.datasets.sequence_labeling import ONTONOTES, JsonlCorpus, JsonlDataset, MultiFileJsonlCorpus
label_desc: Use image node_id 9 for calling a global function with example usage: test_load_span_data(tasks_base_path) without return types