code: def test_jsonl_dataset_should_use_label_type(tasks_base_path):
      """Tests whether the dataset respects the label_type parameter."""
      dataset = JsonlDataset(
          tasks_base_path / "jsonl" / "train.jsonl", label_type="pos"
      )  # use other type
  
      for sentence in dataset.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 33 for calling a global function with example usage: test_jsonl_dataset_should_use_label_type(tasks_base_path) without return types