code: def test_backwards_compatibility(self):
      saveable_compat.force_checkpoint_conversion()
  
      table_module = generate_checkpoint.TableModule()
      table_module.lookup_table.insert(3, 9)
      self.assertEqual(
          9, self.evaluate(table_module.lookup_table.lookup(3))
      )
  
      ckpt = checkpoint.Checkpoint(table_module)
      ckpt.read(_LEGACY_TABLE_CHECKPOINT_PATH).assert_consumed()
      self.assertEqual(
          -1, self.evaluate(table_module.lookup_table.lookup(3))
      )
      self.assertEqual(
          4, self.evaluate(table_module.lookup_table.lookup(2))
      )
  
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 2 for calling the TestForceCheckpointConversionFlag obj's underlying member method code with example usage: obj.test_backwards_compatibility() without return types