code: def _assert_conllu_dataset(dataset):
      sent1 = dataset[0]
  
      assert [
          label.data_point.text for label in sent1.get_labels("ner")
      ] == ["Larry Page", "Sergey Brin", "Google"]
      assert [label.value for label in sent1.get_labels("ner")] == [
          "PER",
          "PER",
          "ORG",
      ]
  
      assert [
          token.get_label("upos").value for token in sent1.tokens
      ] == [
          "PROPN",
          "PROPN",
          "CCONJ",
          "PROPN",
          "PROPN",
          "VERB",
          "PROPN",
          "PUNCT",
      ]
  
      assert [token.whitespace_after for token in sent1.tokens] == [
          1,
          1,
          1,
          1,
          1,
          1,
          0,
          0,
      ]
  
      ner_spans1 = sent1.get_labels("ner")
      assert len(ner_spans1) == 3
  
      upos_spans1 = sent1.get_labels("upos")
      assert len(upos_spans1) == 8
  
      rels1 = sent1.get_labels("relation")
      assert len(rels1) == 2
  
      assert [token.idx for token in rels1[1].data_point.first] == [7]
      assert [token.idx for token in rels1[1].data_point.second] == [
          4,
          5,
      ]
  
      sent3 = dataset[2]
  
      ner_labels3 = sent3.get_labels("ner")
      assert len(ner_labels3) == 3
  
      upos_labels3 = sent3.get_labels("upos")
      assert len(upos_labels3) == 11
  
      rels3 = sent3.get_labels("relation")
      assert len(rels3) == 1
  
      assert [token.idx for token in rels3[0].data_point.first] == [6]
      assert [token.idx for token in rels3[0].data_point.second] == [
          1,
          2,
      ]
  
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 17 for calling a global function with example usage: _assert_conllu_dataset(dataset) without return types