code: def testCheckpointIntervalWithRestore(self):
      directory = self.get_temp_dir()
      v = variables.Variable(1.0)
      step_counter = variables.Variable(0)
      self.evaluate([v.initializer, step_counter.initializer])
  
      # Prepare a checkpoint.
      checkpoint = util.Checkpoint(v=v)
      checkpoint.save(os.path.join(directory, "ckpt"))
  
      manager = checkpoint_management.CheckpointManager(
          checkpoint,
          directory,
          max_to_keep=None,
          step_counter=step_counter,
          checkpoint_interval=2,
      )
  
      # Restore from the checkpoint.
      self.assertIsNotNone(manager.restore_or_initialize())
  
      # step_counter: 0, no checkpoint saved because it is restored from the
      # checkpoint with the same step.
      path = manager.save()
      self.assertIsNone(path)
  
imports: import contextlib
  import os
  import pathlib
  import shutil
  import tempfile
  from google.protobuf import text_format
  from tensorflow.core.protobuf import saver_pb2
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import saver
  from tensorflow.python.training.checkpoint_state_pb2 import CheckpointState
label_desc: Use image node_id 12 for calling the CheckpointManagerTest obj's underlying member method code with example usage: obj.testCheckpointIntervalWithRestore() without return types