def METHOD_NAME(**kwargs: Any) -> UserProfile:
    self.assertEqual(kwargs["full_name"], "fred")
    self.assertEqual(kwargs["email"], email)
    self.assertEqual(kwargs["active"], False)
    self.assertEqual(kwargs["is_mirror_dummy"], True)
    # We create an actual user here to simulate a race.
    # We use the minimal, un-mocked function.
    kwargs["bot_type"] = None
    kwargs["bot_owner"] = None
    kwargs["tos_version"] = None
    kwargs["timezone"] = timezone_now()
    kwargs["email_address_visibility"] = UserProfile.EMAIL_ADDRESS_VISIBILITY_EVERYONE
    create_user_profile(**kwargs).save()
    raise IntegrityError