code: def test_save_load(caplog):
      caplog.set_level(logging.CRITICAL)
  
      lang_names = [
          "bert-base-cased",
          "roberta-base",
          "xlnet-base-cased",
      ]
      tokenizers = []
      for lang_name in lang_names:
          if "xlnet" in lang_name.lower():
              t = Tokenizer.load(
                  lang_name,
                  lower_case=False,
                  use_fast=True,
                  from_slow=True,
              )
          else:
              t = Tokenizer.load(lang_name, lower_case=False)
          t.add_tokens(new_tokens=["neverseentokens"])
          tokenizers.append(t)
  
      basic_text = "Some Text with neverseentokens plus !215?#. and a combined-token_with/chars"
  
      for tokenizer in tokenizers:
          tokenizer_type = tokenizer.__class__.__name__
          save_dir = f"testsave/{tokenizer_type}"
          tokenizer.save_pretrained(save_dir)
          tokenizer_loaded = Tokenizer.load(
              save_dir, tokenizer_class=tokenizer_type
          )
          encoded_before = tokenizer.encode_plus(basic_text).encodings[
              0
          ]
          encoded_after = tokenizer_loaded.encode_plus(
              basic_text
          ).encodings[0]
          data_before = {
              "tokens": encoded_before.tokens,
              "offsets": encoded_before.offsets,
              "words": encoded_before.words,
          }
          data_after = {
              "tokens": encoded_after.tokens,
              "offsets": encoded_after.offsets,
              "words": encoded_after.words,
          }
          assert data_before == data_after
  
file_path: FARM/test/test_tokenization.py
imports: import logging
  import pytest
  import re
  from transformers import BertTokenizer, BertTokenizerFast, RobertaTokenizer, RobertaTokenizerFast, XLNetTokenizer, XLNetTokenizerFast, ElectraTokenizerFast
  from tokenizers.pre_tokenizers import WhitespaceSplit
  from farm.modeling.tokenization import Tokenizer, tokenize_with_metadata, truncate_sequences
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_save_load(caplog) without return types