def set_checkpoint(self, checkpoint_path: str):
    'Sets checkpoint on task.\n\n        Args:\n            checkpoint_path: The path to load the checkpoint from. Can be a file or a\n            directory. See :func:`load_checkpoint` for more information.\n        '
    self.checkpoint_path = checkpoint_path
    return self
Sets checkpoint on task.

Args:
    checkpoint_path: The path to load the checkpoint from. Can be a file or a
    directory. See :func:`load_checkpoint` for more information.
def set_checkpoint(self, checkpoint_path: str):
    'Sets checkpoint on task.\n\n        Args:\n            checkpoint_path: The path to load the checkpoint from. Can be a file or a\n            directory. See :func:`load_checkpoint` for more information.\n        '
    self.checkpoint_path = checkpoint_path
    return self