def METHOD_NAME(self, username, password):
    user, created = User.objects.get_or_create(username=username)
    user.set_password(password)
    self._add_permissions_to_user(user, save=False)
    user.save()
    return user