code: def test_german_mobie(tasks_base_path):
      corpus = flair.datasets.NER_GERMAN_MOBIE()
  
      # See MobIE paper (https://aclanthology.org/2021.konvens-1.22/), table 2
      ref_sentences = 7_077
      ref_tokens = 90_971
  
      actual_sentences = sum(
          [
              1
              for sentence in corpus.train + corpus.dev + corpus.test
              if sentence[0].text != "-DOCSTART-"
          ]
      )
      actual_tokens = sum(
          [
              len(sentence)
              for sentence in corpus.train + corpus.dev + corpus.test
              if sentence[0].text != "-DOCSTART-"
          ]
      )
  
      assert ref_sentences == actual_sentences, (
          f"Number of parsed sentences ({actual_sentences}) does not match with "
          f"reported number of sentences ({ref_sentences})!"
      )
      assert (
          ref_tokens == actual_tokens
      ), f"Number of parsed tokens ({actual_tokens}) does not match with reported number of tokens ({ref_tokens})!"
  
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 30 for calling a global function with example usage: test_german_mobie(tasks_base_path) without return types