def METHOD_NAME(self, compare_frame, testcase_frame):
    compare_frame.select()
    if "ComparePrettyPrint" in compare_frame.name():
        return gdb.execute("p value", to_string=True)
    value_str = str(compare_frame.read_var("value"))
    clean_expression_str = value_str.strip("'\"")
    testcase_frame.select()
    return gdb.execute("p " + clean_expression_str, to_string=True)