code: def test_export_for_inference(self):
      for tf_tokenizer in self.tf_tokenizers:
          model = ModelToSave(tokenizer=tf_tokenizer)
          test_inputs = tf.convert_to_tensor(self.test_sentences)
          out = model(
              test_inputs
          )  # Build model with some sample inputs
          with TemporaryDirectory() as tempdir:
              save_path = Path(tempdir) / "saved.model"
              model.export(save_path)
              loaded_model = tf.saved_model.load(save_path)
          loaded_output = loaded_model.serve(test_inputs)
          # We may see small differences because the loaded model is compiled, so we need an epsilon for the test
          self.assertLessEqual(
              tf.reduce_max(tf.abs(out - loaded_output)), 1e-5
          )
  
file_path: transformers/tests/models/bert/test_tokenization_bert_tf.py
imports: import unittest
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from transformers import AutoConfig, TFAutoModel, is_tensorflow_text_available, is_tf_available
  from transformers.models.bert.tokenization_bert import BertTokenizer
  from transformers.testing_utils import require_tensorflow_text, require_tf, slow
label_desc: Use image node_id 5 for calling the BertTokenizationTest obj's underlying member method code with example usage: obj.test_export_for_inference() without return types