def default_device(user):
    if not user and user.is_anonymous():
        return
    for device in devices_for_user(user):
        if device.name == 'default':
            return device
dataset/ETHPy150Open Bouke/django-two-factor-auth/two_factor/utils.py/default_device/operator `or` -> `and`