code: def get_default_saver(max_to_keep: int=3) -> tf.train.Saver:
      
      return tf.train.Saver(max_to_keep=max_to_keep)
docs: Creates Tensorflow Saver object with 3 recent checkpoints to keep.
      :param max_to_keep: Maximum number of recent checkpoints to keep, defaults to 3