code: def testAssertConsumedWithUnusedPythonState(self):
      has_config = base.Trackable()
      has_config.get_config = lambda: {}
      saved = util.Checkpoint(obj=has_config)
      save_path = saved.save(os.path.join(self.get_temp_dir(), "ckpt"))
      restored = util.Checkpoint(obj=base.Trackable())
      restored.restore(save_path).assert_consumed()
  
file_path: tensorflow-upstream/tensorflow/python/trackable/base_test.py
imports: import os
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.platform import test
  from tensorflow.python.trackable import base
label_desc: Use image node_id 3 for calling the InterfaceTests obj's underlying member method code with example usage: obj.testAssertConsumedWithUnusedPythonState() without return types