def METHOD_NAME(user, owner_id, attendee_case_type):
    case_name = user.username.split('@')[0]
    fields = {
        ATTENDEE_USER_ID_CASE_PROPERTY: user.user_id,
    }
    return CaseBlock(
        create=True,
        case_id=uuid4().hex,
        owner_id=owner_id,
        case_type=attendee_case_type,
        case_name=case_name,
        update=fields,
    )