code: def test_ontonotes_extraction(tasks_base_path):
      import os
      import tempfile
  
      from flair.file_utils import unpack_file
  
      ontonotes_path = tasks_base_path / "ontonotes"
      with tempfile.TemporaryDirectory() as tmp_dir:
          unpack_file(
              ontonotes_path / "tiny-conll-2012.zip",
              tmp_dir,
              "zip",
              True,
          )
          assert "conll-2012" in os.listdir(tmp_dir)
  
          corpus = ONTONOTES(base_path=tmp_dir)
          label_dictionary = corpus.make_label_dictionary("ner")
  
          assert len(label_dictionary) == 14
          assert label_dictionary.span_labels
  
          domain_specific_corpus = ONTONOTES(
              base_path=tmp_dir, domain=["bc"]
          )
  
          assert len(corpus.train) > len(domain_specific_corpus.train)
  
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 39 for calling a global function with example usage: test_ontonotes_extraction(tasks_base_path) without return types