def METHOD_NAME(username, email, email_suffix=''):
    if email is None:
        email = ''
    if '@' in email:
        return email
    if '@' in username:
        return username
    if not email_suffix:
        email_suffix = settings.EMAIL_SUFFIX
    email = f'{username}@{email_suffix}'
    return email