def METHOD_NAME(checkpoint_directory: str):
    checkpoint_directory = pathlib.Path(checkpoint_directory)
    with open(os.path.join(checkpoint_directory, "steps_completed"), "r") as f:
        return int(f.read())