def METHOD_NAME(text, mode="exec"):
    """
    Validate decompilation of the given source code.
    :param text: Source to validate decompilation of.
    """
    original_code = compile(text, "<string>", mode)
    original_dis = _dis_to_text(original_code)
    original_text = text
    deparsed = code_deparse(
        original_code, out=six.StringIO(), version=PYTHON_VERSION_TRIPLE, compile_mode=mode
    )
    uncompyled_text = deparsed.text
    uncompyled_code = compile(uncompyled_text, "<string>", "exec")
    if not are_code_objects_equal(uncompyled_code, original_code):
        uncompyled_dis = _dis_to_text(uncompyled_text)
        def output(text, dis):
            width = 60
            return "\n\n".join(
                [
                    " SOURCE CODE ".center(width, "#"),
                    text.strip(),
                    " BYTECODE ".center(width, "#"),
                    dis,
                ]
            )
        original = output(original_text, original_dis)
        uncompyled = output(uncompyled_text, uncompyled_dis)
        print_diff(original, uncompyled)
        assert "original" == "uncompyled"