code: def test_masakha_pos_corpus(tasks_base_path):
      # This test covers the complete MasakhaPOS dataset.
      supported_versions = ["v1"]
  
      supported_languages = {
          "v1": [
              "bam",
              "bbj",
              "ewe",
              "fon",
              "hau",
              "ibo",
              "kin",
              "lug",
              "mos",
              "pcm",
              "nya",
              "sna",
              "swa",
              "twi",
              "wol",
              "xho",
              "yor",
              "zul",
          ],
      }
  
      africa_pos_stats = {
          "v1": {
              "bam": {"train": 775, "dev": 154, "test": 619},
              "bbj": {"train": 750, "dev": 149, "test": 599},
              "ewe": {"train": 728, "dev": 145, "test": 582},
              "fon": {"train": 810, "dev": 161, "test": 646},
              "hau": {"train": 753, "dev": 150, "test": 601},
              "ibo": {"train": 803, "dev": 160, "test": 642},
              "kin": {"train": 757, "dev": 151, "test": 604},
              "lug": {"train": 733, "dev": 146, "test": 586},
              "mos": {"train": 757, "dev": 151, "test": 604},
              "pcm": {"train": 752, "dev": 150, "test": 600},
              "nya": {"train": 728, "dev": 145, "test": 582},
              "sna": {"train": 747, "dev": 149, "test": 596},
              "swa": {"train": 693, "dev": 138, "test": 553},
              "twi": {"train": 785, "dev": 157, "test": 628},
              "wol": {"train": 782, "dev": 156, "test": 625},
              "xho": {"train": 752, "dev": 150, "test": 601},
              "yor": {"train": 893, "dev": 178, "test": 713},
              "zul": {"train": 753, "dev": 150, "test": 601},
          },
      }
  
      def check_number_sentences(
          reference: int,
          actual: int,
          split_name: str,
          language: str,
          version: str,
      ):
          assert (
              actual == reference
          ), f"Mismatch in number of sentences for {language}@{version}/{split_name}"
  
      for version in supported_versions:
          for language in supported_languages[version]:
              corpus = flair.datasets.MASAKHA_POS(
                  languages=language, version=version
              )
  
              gold_stats = africa_pos_stats[version][language]
  
              check_number_sentences(
                  len(corpus.train),
                  gold_stats["train"],
                  "train",
                  language,
                  version,
              )
              check_number_sentences(
                  len(corpus.dev),
                  gold_stats["dev"],
                  "dev",
                  language,
                  version,
              )
              check_number_sentences(
                  len(corpus.test),
                  gold_stats["test"],
                  "test",
                  language,
                  version,
              )
  
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 29 for calling a global function with example usage: test_masakha_pos_corpus(tasks_base_path) without return types