code: def test_GetQUCB(self, mock_acqf):
      # make sure beta is specified
      with self.assertRaises(ValueError):
          acqf = get_acquisition_function(
              acquisition_function_name="qUCB",
              model=self.model,
              objective=self.objective,
              X_observed=self.X_observed,
              X_pending=self.X_pending,
              mc_samples=self.mc_samples,
              seed=self.seed,
          )
      acqf = get_acquisition_function(
          acquisition_function_name="qUCB",
          model=self.model,
          objective=self.objective,
          X_observed=self.X_observed,
          X_pending=self.X_pending,
          mc_samples=self.mc_samples,
          seed=self.seed,
          beta=0.3,
      )
      self.assertEqual(acqf, mock_acqf.return_value)
      mock_acqf.assert_called_once_with(
          model=self.model,
          beta=0.3,
          sampler=mock.ANY,
          objective=self.objective,
          posterior_transform=None,
          X_pending=self.X_pending,
      )
      args, kwargs = mock_acqf.call_args
      self.assertEqual(args, ())
      sampler = kwargs["sampler"]
      self.assertEqual(
          sampler.sample_shape, torch.Size([self.mc_samples])
      )
      self.assertEqual(sampler.seed, 1)
      self.assertTrue(torch.equal(kwargs["X_pending"], self.X_pending))
      # test with different tau, non-qmc
      acqf = get_acquisition_function(
          acquisition_function_name="qUCB",
          model=self.model,
          objective=self.objective,
          X_observed=self.X_observed,
          X_pending=self.X_pending,
          mc_samples=self.mc_samples,
          seed=2,
          beta=0.2,
      )
      self.assertEqual(mock_acqf.call_count, 2)
      args, kwargs = mock_acqf.call_args
      self.assertEqual(args, ())
      self.assertEqual(kwargs["beta"], 0.2)
      sampler = kwargs["sampler"]
      self.assertEqual(
          sampler.sample_shape, torch.Size([self.mc_samples])
      )
      self.assertEqual(sampler.seed, 2)
      self.assertTrue(torch.equal(kwargs["X_pending"], self.X_pending))
  
imports: import math
  from unittest import mock
  import torch
  from botorch.acquisition import logei, monte_carlo
  from botorch.acquisition.factory import get_acquisition_function
  from botorch.acquisition.multi_objective import logei, MCMultiOutputObjective, monte_carlo
  from botorch.acquisition.objective import MCAcquisitionObjective, ScalarizedPosteriorTransform
  from botorch.acquisition.utils import compute_best_feasible_objective
  from botorch.utils.multi_objective.box_decompositions.non_dominated import FastNondominatedPartitioning, NondominatedPartitioning
  from botorch.utils.testing import BotorchTestCase, MockModel, MockPosterior
  from gpytorch.distributions import MultivariateNormal
  from torch import Tensor
label_desc: Use image node_id 10 for calling the TestGetAcquisitionFunction obj's underlying member method code with example usage: obj.test_GetQUCB(mock_acqf) without return types