code: def test_from_pretrained_dynamic_tokenizer_legacy_format(self):
      tokenizer = AutoTokenizer.from_pretrained(
          "hf-internal-testing/test_dynamic_tokenizer_legacy",
          trust_remote_code=True,
      )
      self.assertTrue(tokenizer.special_attribute_present)
      if is_tokenizers_available():
          self.assertEqual(
              tokenizer.__class__.__name__, "NewTokenizerFast"
          )
  
          # Test we can also load the slow version
          tokenizer = AutoTokenizer.from_pretrained(
              "hf-internal-testing/test_dynamic_tokenizer_legacy",
              trust_remote_code=True,
              use_fast=False,
          )
          self.assertTrue(tokenizer.special_attribute_present)
          self.assertEqual(tokenizer.__class__.__name__, "NewTokenizer")
      else:
          self.assertEqual(tokenizer.__class__.__name__, "NewTokenizer")
  
imports: import os
  import shutil
  import sys
  import tempfile
  import unittest
  from pathlib import Path
  import pytest
  from transformers import BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP, AutoTokenizer, BertConfig, BertTokenizer, BertTokenizerFast, CTRLTokenizer, GPT2Tokenizer, GPT2TokenizerFast, PreTrainedTokenizerFast, RobertaTokenizer, RobertaTokenizerFast, is_tokenizers_available
  from transformers.models.auto.configuration_auto import CONFIG_MAPPING, AutoConfig
  from transformers.models.auto.tokenization_auto import TOKENIZER_MAPPING, get_tokenizer_config, tokenizer_class_from_name
  from transformers.models.roberta.configuration_roberta import RobertaConfig
  from transformers.testing_utils import DUMMY_DIFF_TOKENIZER_IDENTIFIER, DUMMY_UNKNOWN_IDENTIFIER, SMALL_MODEL_IDENTIFIER, RequestCounter, require_tokenizers, slow
  from test_module.custom_configuration import CustomConfig
  from test_module.custom_tokenization import CustomTokenizer
label_desc: Use image node_id 20 for calling the AutoTokenizerTest obj's underlying member method code with example usage: obj.test_from_pretrained_dynamic_tokenizer_legacy_format() without return types