code: def test_abstract_raises(self):
      for acqf_class in (
          MCAcquisitionFunction,
          SampleReducingMCAcquisitionFunction,
      ):
          with self.assertRaises(TypeError):
              acqf_class()
  
      # raise if model is multi-output, but no outcome transform or objective
      # are given
      no = "botorch.utils.testing.MockModel.num_outputs"
      with mock.patch(
          no, new_callable=mock.PropertyMock
      ) as mock_num_outputs:
          mock_num_outputs.return_value = 2
          mm = MockModel(MockPosterior())
          for dummy in (
              DummyMCAcquisitionFunction,
              DummyReducingMCAcquisitionFunction,
          ):
              with self.assertRaises(UnsupportedError):
                  dummy(model=mm)
              # raise if model is multi-output, but outcome transform does not
              # scalarize and no objetive is given
              with mock.patch(
                  no, new_callable=mock.PropertyMock
              ) as mock_num_outputs:
                  mock_num_outputs.return_value = 2
                  mm = MockModel(MockPosterior())
                  ptf = DummyNonScalarizingPosteriorTransform()
                  with self.assertRaises(UnsupportedError):
                      dummy(model=mm, posterior_transform=ptf)
  
imports: import warnings
  from copy import deepcopy
  from functools import partial
  from itertools import product
  from math import pi
  from unittest import mock
  import torch
  from botorch import settings
  from botorch.acquisition.monte_carlo import MCAcquisitionFunction, qExpectedImprovement, qNoisyExpectedImprovement, qProbabilityOfImprovement, qSimpleRegret, qUpperConfidenceBound, SampleReducingMCAcquisitionFunction
  from botorch.acquisition.objective import ConstrainedMCObjective, GenericMCObjective, IdentityMCObjective, ScalarizedPosteriorTransform
  from botorch.acquisition.utils import prune_inferior_points
  from botorch.exceptions import BotorchWarning, UnsupportedError
  from botorch.models import SingleTaskGP
  from botorch.sampling.normal import IIDNormalSampler, SobolQMCNormalSampler
  from botorch.utils.low_rank import sample_cached_cholesky
  from botorch.utils.test_helpers import DummyNonScalarizingPosteriorTransform
  from botorch.utils.testing import BotorchTestCase, MockModel, MockPosterior
  from botorch.utils.transforms import standardize
  from torch import Tensor
label_desc: Use image node_id 1 for calling the TestMCAcquisitionFunction obj's underlying member method code with example usage: obj.test_abstract_raises() without return types