code: def test_jsonl_corpus_should_use_label_type(tasks_base_path):
      corpus = JsonlCorpus(tasks_base_path / "jsonl", label_type="pos")
  
      for sentence in corpus.get_all_sentences():
          assert sentence.has_label("pos")
          assert not sentence.has_label("ner")
  
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 32 for calling a global function with example usage: test_jsonl_corpus_should_use_label_type(tasks_base_path) without return types