code: def test_nermud_corpus(tasks_base_path):
      # This test covers the NERMuD dataset. Official stats can be found here:
      # https://github.com/dhfbk/KIND/tree/main/evalita-2023
      gold_stats = {
          "WN": {"train": 10912, "dev": 2594},
          "FIC": {"train": 11423, "dev": 1051},
          "ADG": {"train": 5147, "dev": 1122},
      }
  
      def check_number_sentences(
          reference: int, actual: int, split_name: str
      ):
          assert (
              actual == reference
          ), f"Mismatch in number of sentences for {split_name} split"
  
      for domain, stats in gold_stats.items():
          corpus = flair.datasets.NER_NERMUD(domains=domain)
          check_number_sentences(
              len(corpus.train), stats["train"], "train"
          )
          check_number_sentences(len(corpus.dev), stats["dev"], "dev")
  
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 27 for calling a global function with example usage: test_nermud_corpus(tasks_base_path) without return types