def METHOD_NAME(
    mock_sub,
    capsys,
    platform,
    start_new_session,
    run_kwargs,
    sub_kw,
):
    """start_new_session is passed thru on Linux and macOS but converted for Windows."""
    mock_sub.tools.host_os = platform
    mock_sub.run(
        ["hello", "world"],
        start_new_session=start_new_session,
        stream_output=False,
    )
    final_kwargs = {**run_kwargs, **sub_kw}
    if platform == "Windows":
        mock_sub._subprocess.run.assert_called_with(["hello", "world"], **final_kwargs)
        assert capsys.readouterr().out == ""
    else:
        mock_sub._subprocess.run.assert_called_with(
            ["hello", "world"],
            start_new_session=start_new_session,
            **final_kwargs,
        )
        assert capsys.readouterr().out == ""