code: def test_from_config(self):
      for tf_tokenizer in self.tf_tokenizers:
          test_inputs = tf.convert_to_tensor([self.test_sentences[0]])
          out = tf_tokenizer(
              test_inputs
          )  # Build model with some sample inputs
  
          config = tf_tokenizer.get_config()
          model_from_config = TFGPT2Tokenizer.from_config(config)
          from_config_output = model_from_config(test_inputs)
  
          for key in from_config_output.keys():
              self.assertTrue(
                  tf.reduce_all(from_config_output[key] == out[key])
              )
  
file_path: transformers/tests/models/gpt2/test_tokenization_gpt2_tf.py
imports: import unittest
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from transformers import AutoConfig, TFGPT2LMHeadModel, is_keras_nlp_available, is_tf_available
  from transformers.models.gpt2.tokenization_gpt2 import GPT2Tokenizer
  from transformers.testing_utils import require_keras_nlp, require_tf, slow
label_desc: Use image node_id 5 for calling the GPTTokenizationTest obj's underlying member method code with example usage: obj.test_from_config() without return types