def METHOD_NAME(self):
    if not self.request.user.is_authenticated and self.action == "create":
        return SignupUserSerializer
    if not self.request.user.is_authenticated:
        return PublicUserSerializer
    return UserSerializer