code: def testCustomNumbering(self):
      directory = self.get_temp_dir()
      step = variables.Variable(0, dtype=dtypes.int64)
      checkpoint = util.Checkpoint(step=step)
      manager = checkpoint_management.CheckpointManager(
          checkpoint, directory, max_to_keep=2
      )
      self.evaluate(step.initializer)
      for i in range(5):
          path = manager.save(checkpoint_number=step)
          expected_suffix = "-%d" % (2 * i,)
          if not path.endswith(expected_suffix):
              self.fail(
                  "%s should have suffix %s" % (path, expected_suffix)
              )
          self.evaluate(step.assign_add(2))
      self.assertEqual(5, self.evaluate(checkpoint.save_counter))
      # Test regular integers
      last_path = manager.save(checkpoint_number=32)
      self.assertIn("-32", last_path)
      self.assertEqual(last_path, manager.latest_checkpoint)
      self.assertEqual(
          last_path, checkpoint_management.latest_checkpoint(directory)
      )
      state = checkpoint_management.get_checkpoint_state(directory)
      # Only the most recent two checkpoints are saved
      self.assertEqual(
          [path, last_path], state.all_model_checkpoint_paths
      )
  
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 6 for calling the CheckpointManagerTest obj's underlying member method code with example usage: obj.testCustomNumbering() without return types