def checkpoints(period, total):
    """
    A helpful function for individual train method.
    to generate checkpoint list with integers 
    for every PERIOD time steps and TOTAL time steps in total.
    """
    ckps = [
        period * x for x in range(1, total // period)
    ]
    return ckps