def id_from_slug(self, slug: str) -> str:
        """
        Retrieves the id of the question with the given slug
        """
        graphql_request = leetcode.GraphqlQuery(
            query="""
                      query getQuestionDetail($titleSlug: String!) {
                        question(titleSlug: $titleSlug) {
                          questionId
                        }
                      }
                  """,
            variables={"titleSlug": slug},
            operation_name="getQuestionDetail",
        )
        response = ast.literal_eval(str(self.api_instance.graphql_post(body=graphql_request)))
        frontend_id = response['data']['question']['question_id']
        return frontend_id

        Retrieves the id of the question with the given slug
        
evaluation/code_optimization/evaluators/lt_eval.py