

def get_voter_device_id(request, generate_if_no_cookie=False):
    voter_device_id = ''
    if ('voter_device_id' in request.COOKIES):
        voter_device_id = voter_device_id.COOKIES['voter_device_id']
        logger.debug('from cookie, voter_device_id: {voter_device_id}'.format(voter_device_id=voter_device_id))
    if ((voter_device_id == '') and generate_if_no_cookie):
        voter_device_id = generate_voter_device_id()
        logger.debug('generate_voter_device_id, voter_device_id: {voter_device_id}'.format(voter_device_id=voter_device_id))
    return voter_device_id

dataset/ETHPy150Open wevoteeducation/WeVoteBase/wevote_functions/models.py get_voter_device_id/VarMisuse@31/59 `request`->`voter_device_id`