def METHOD_NAME(self, code):
    proc = subprocess.Popen(
        sys.executable, stdin=subprocess.PIPE, stdout=subprocess.PIPE
    )
    proc.stdin.write(utf8(code))
    proc.stdin.close()
    proc.wait()
    stdout = proc.stdout.read()
    proc.stdout.close()
    if proc.returncode != 0:
        raise RuntimeError(
            "Process returned %d. stdout=%r" % (proc.returncode, stdout)
        )
    return to_unicode(stdout)