def METHOD_NAME() -> None:
    venv = Venv.restore_current()
    i = iter_stdout_with_result(venv, "python", "tests/common/scripts/stdout_encode_result.py")
    assert iter_until_returns(i) == ("this is string", TRunMetrics(True, 300))
    i = iter_stdout_with_result(venv, "python", "tests/common/scripts/stdout_encode_unpicklable.py")
    assert iter_until_returns(i) is None
    # it just excepts without encoding exception
    with pytest.raises(CalledProcessError):
        i = iter_stdout_with_result(venv, "python", "tests/common/scripts/no_stdout_no_stderr_with_fail.py")
        iter_until_returns(i)
    # this raises a decoded exception: UnsupportedProcessStartMethodException
    with pytest.raises(UnsupportedProcessStartMethodException):
        i = iter_stdout_with_result(venv, "python", "tests/common/scripts/stdout_encode_exception.py")
        iter_until_returns(i)