def METHOD_NAME(setup_retirement_states):  # lint-amnesty, pylint: disable=redefined-outer-name, unused-argument
    user = UserFactory.create(username='user0', email="user0@example.com")
    username = user.username
    user_email = user.email
    create_user_file(True)
    with pytest.raises(CommandError, match=r'You cannot use userfile option with username and user_email'):
        call_command('retire_user', user_file=user_file, username=username, user_email=user_email)
    remove_user_file()