code: def test_load_imdb_data_max_tokens(tasks_base_path):
      # get training, test and dev data
      corpus = flair.datasets.ClassificationCorpus(
          tasks_base_path / "imdb",
          memory_mode="full",
          truncate_to_max_tokens=3,
      )
  
      assert len(corpus.train[0]) <= 3
      assert len(corpus.dev[0]) <= 3
      assert len(corpus.test[0]) <= 3
  
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 3 for calling a global function with example usage: test_load_imdb_data_max_tokens(tasks_base_path) without return types