def METHOD_NAME(self, METHOD_NAME: str, user: Optional[Union[UserFactory, "User"]] = None, **kwargs) -> HttpResponse:
    headers = {}
    if user is not None:
        user = cast("User", user)
        self.client.force_login(user, backend="django.contrib.auth.backends.ModelBackend")
    return super().METHOD_NAME(METHOD_NAME, headers=headers, **kwargs)