def METHOD_NAME(self, request: pytest.FixtureRequest):
    return_values = getattr(request, "param", {})
    with patch("streamlink_cli.utils.player.which", side_effect=lambda path: return_values.get(path, None)) as mock_which:
        yield mock_which