code: def test_german_ler_corpus(tasks_base_path):
      corpus = flair.datasets.NER_GERMAN_LEGAL()
  
      # Number of instances per dataset split are taken from https://huggingface.co/datasets/elenanereiss/german-ler
      assert (
          len(corpus.train) == 53384
      ), "Mismatch in number of sentences for train split"
      assert (
          len(corpus.dev) == 6666
      ), "Mismatch in number of sentences for dev split"
      assert (
          len(corpus.test) == 6673
      ), "Mismatch in number of sentences for test split"
  
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 28 for calling a global function with example usage: test_german_ler_corpus(tasks_base_path) without return types