message: Add test for checkpoint released before status is checked.
diff: @@ -397,6 +397,18 @@ class CheckpointingTests(parameterized.TestCase, test.TestCase):
  self.assertEqual(42., self.evaluate(v.non_dep_variable))
  self.assertEqual(42., self.evaluate(v.mirrored))
  + @test_util.run_in_graph_and_eager_modes
  + def testAssertConsumedNoCheckpoint(self):
  + prefix = os.path.join(self.get_temp_dir(), "ckpt")
  + v = variable_scope.get_variable(name="v", initializer=0.)
  + self.evaluate(v.initializer)
  + ckpt = trackable_utils.Checkpoint(v=v)
  + self.evaluate(trackable_utils.gather_initializers(ckpt))
  + save_path = ckpt.save(file_prefix=prefix)
  + status = ckpt.restore(save_path=save_path)
  + del ckpt
  + status.assert_consumed()
  +
  @test_util.run_in_graph_and_eager_modes
  def testSaveRestore(self):
  model = MyModel()
  