def METHOD_NAME(self, caplog):
    with pm.Model():
        prob = pm.Beta("prob", alpha=5.0, beta=3.0)
        pm.Binomial("outcome", n=1, p=prob)
        caplog.clear()
        with warnings.catch_warnings():
            warnings.filterwarnings("ignore", ".*number of samples.*", UserWarning)
            pm.sample(3, tune=2, discard_tuned_samples=False, n_init=None, chains=1)
        messages = [msg.msg for msg in caplog.records]
        assert all("boolean index did not" not in msg for msg in messages)