def METHOD_NAME(
    self,
    algo_wrapper: InsistSuggest[FixedSuggestionAlgo],
    monkeypatch: MonkeyPatch,
):
    """Test that when the algo can't produce a new trial, and there is no InsistWrapper, the
    SpaceTransform wrapper fails to sample a new trial.
    """
    algo_without_wrapper = algo_wrapper.algorithm
    assert isinstance(algo_without_wrapper, FixedSuggestionAlgo)
    calls: int = 0
    # Make the wrapper insist enough so that it actually
    # gets a trial after asking enough times:
    fixed_suggestion = algo_without_wrapper.space.sample(1)[0]
    def _suggest(num: int) -> list[Trial]:
        nonlocal calls
        calls += 1
        if calls < 5:
            return []
        return [fixed_suggestion]
    monkeypatch.setattr(algo_without_wrapper, "suggest", _suggest)
    trials = algo_without_wrapper.suggest(1)
    assert calls == 1
    assert not trials