code: def test_icdar_europeana_corpus(tasks_base_path):
      # This test covers the complete ICDAR Europeana corpus:
      # https://github.com/stefan-it/historic-domain-adaptation-icdar
  
      gold_stats = {
          "fr": {"train": 7936, "dev": 992, "test": 992},
          "nl": {"train": 5777, "dev": 722, "test": 723},
      }
  
      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 language in ["fr", "nl"]:
          corpus = flair.datasets.NER_ICDAR_EUROPEANA(language=language)
  
          check_number_sentences(
              len(corpus.train), gold_stats[language]["train"], "train"
          )
          check_number_sentences(
              len(corpus.dev), gold_stats[language]["dev"], "dev"
          )
          check_number_sentences(
              len(corpus.test), gold_stats[language]["test"], "test"
          )
  
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 25 for calling a global function with example usage: test_icdar_europeana_corpus(tasks_base_path) without return types