def __init__(self, username=None, anonymous_visitor=None,
                 verified_human=True):
        if anonymous_visitor:
            self.anonymous_id = anonymous_visitor.id
        else:
            self.anonymous_id = None
        
        if not username == None:
            self.user, created = User.objects.get_or_create(
                username=username, email="%s@example.com" % username)
        else:
            self.user = None
        
        self.verified_human = verified_human
        self.session = {}
        self.temporary_enrollments = {}
dataset/ETHPy150Open e-loue/django-lean/django_lean/experiments/tests/utils.py/TestUser.__init__/original