code: def test_checkpoint(self):
      saveable_compat.force_checkpoint_conversion()
  
      table_module = generate_checkpoint.TableModule()
      table_module.lookup_table.insert(3, 9)
      ckpt = checkpoint.Checkpoint(table_module)
      checkpoint_directory = self.get_temp_dir()
      checkpoint_path = os.path.join(checkpoint_directory, "ckpt")
      ckpt.write(checkpoint_path)
  
      new_table_module = generate_checkpoint.TableModule()
      self.assertEqual(
          -1, self.evaluate(new_table_module.lookup_table.lookup(3))
      )
  
      new_ckpt = checkpoint.Checkpoint(new_table_module)
      new_ckpt.read(checkpoint_path).assert_consumed()
      self.assertEqual(
          9, self.evaluate(new_table_module.lookup_table.lookup(3))
      )
  
file_path: tensorflow/tensorflow/python/checkpoint/saveable_compat_test.py
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import saveable_compat
  from tensorflow.python.checkpoint.testdata import generate_checkpoint
  from tensorflow.python.eager import test
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import base
  from tensorflow.python.training import checkpoint_utils
  from tensorflow.python.training.saving import saveable_object
label_desc: Use image node_id 1 for calling the TestForceCheckpointConversionFlag obj's underlying member method code with example usage: obj.test_checkpoint() without return types