def METHOD_NAME(group, usr):
    u_name = "fred"
    first_name = "Fred" 
    last_name = "Flinstone"
    email = "fred@example.com"
    password = "foobarfoobarfoobar"
    user_type = "BEN"
    if usr is not None:
        u_name = usr
        first_name = "{}{}".format(usr, "First") 
        last_name = "{}{}".format(usr, "Last")
        email = "{}.{}@example.com".format(first_name, last_name)
        user_type = "DEV"
    if User.objects.filter(username=u_name).exists():
        User.objects.filter(username=u_name).delete()
    u = None
    if usr is not None:
        u = User.objects.METHOD_NAME(username=u_name,
                                    first_name=first_name,
                                    last_name=last_name,
                                    email=email)
        u.set_unusable_password()
    else:
        # create a sample user 'fred' for dev local that has a usable password
        u = User.objects.METHOD_NAME(username=u_name,
                                    first_name=first_name,
                                    last_name=last_name,
                                    email=email,
                                    password=password,)
    UserProfile.objects.create(user=u,
                               user_type=user_type,
                               create_applications=True,
                               password_reset_question_1='1',
                               password_reset_answer_1='blue',
                               password_reset_question_2='2',
                               password_reset_answer_2='Frank',
                               password_reset_question_3='3',
                               password_reset_answer_3='Bentley')
    u.groups.add(group)
    if usr is None:
        c, g_o_c = Crosswalk.objects.get_or_create(user=u,
                                                   _fhir_id=settings.DEFAULT_SAMPLE_FHIR_ID,
                                                   _user_id_hash="ee78989d1d9ba0b98f3cfbd52479f10c7631679c17563186f70fbef038cc9536")
    return u