code: def test_MCSampler_abstract_raises(self):
      with self.assertRaises(TypeError):
          MCSampler()
  
file_path: botorch/test/sampling/test_base.py
imports: import torch
  from botorch.exceptions.errors import InputDataError
  from botorch.sampling.base import MCSampler
  from botorch.utils.testing import BotorchTestCase, MockPosterior
label_desc: Use image node_id 1 for calling the TestBaseMCSampler obj's underlying member method code with example usage: obj.test_MCSampler_abstract_raises() without return types