def tokenify(cmd, token=None):
    '''
    If token is not None Then assign token to 'token' key of dict cmd and return cmd
    Otherwise return cmd
    '''
    if token is not None:
        cmd['token'] = token
    return cmd
dataset/ETHPy150Open saltstack/halite/halite/server_bottle.py/tokenify/original