def __init__(self, cb, period):
        self.cb = cb
        self.period = int(period)
:param cb: a `Callback`
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/callbacks/base.py/PeriodicCallback.__init__