def __init__(self, cb):
        """
        Args:
            cb(Callback): the underlying callback
        """
        assert isinstance(cb, Callback), type(cb)
        self.chief_only = cb.chief_only
        self.cb = cb

        Args:
            cb(Callback): the underlying callback
        
tensorpack/callbacks/base.py