def METHOD_NAME(self, user_id):  # lint-amnesty, pylint: disable=missing-function-docstring
    response = {
        "id": user_id,
        "default_sort_key": self.server.config.get("default_sort_key", "date"),
        "upvoted_ids": [],
        "downvoted_ids": [],
        "subscribed_thread_ids": [],
    }
    if 'course_id' in self._params:
        response.update({
            "threads_count": 1,
            "comments_count": 2
        })
    self.send_json_response(response)