code: def test_multiple_samplers(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
          )
  
imports: import logging
  import sys
  import warnings
  import numpy
  import pytensor.tensor
  import pytest
  import pymc
  from pymc.exceptions import SamplingError
  from pymc.pytensorf import floatX
  from pymc.step_methods.hmc import NUTS
  from tests import sampler_fixtures
  from tests.helpers import RVsAssignmentStepsTester, StepMethodTester
label_desc: Use image node_id 1 for calling the TestNutsCheckTrace obj's underlying member method code with example usage: obj.test_multiple_samplers(caplog) without return types