code: def test_base(self):
      with self.assertRaisesRegex(
          TypeError, "Can't instantiate abstract class"
      ):
          BotorchContainer()
  
      with self.assertRaisesRegex(
          AttributeError, "Missing .* `event_shape`"
      ):
          BadContainer()
  
      with patch.multiple(BotorchContainer, __abstractmethods__=set()):
          container = BotorchContainer()
          with self.assertRaises(NotImplementedError):
              container()
          with self.assertRaises(NotImplementedError):
              container.device
          with self.assertRaises(NotImplementedError):
              container.dtype
          with self.assertRaises(NotImplementedError):
              container.shape
          with self.assertRaises(NotImplementedError):
              container.__eq__(None)
  
file_path: botorch/test/utils/test_containers.py
imports: from dataclasses import dataclass
  from unittest.mock import patch
  import torch
  from botorch.utils.containers import BotorchContainer, DenseContainer, SliceContainer
  from botorch.utils.testing import BotorchTestCase
  from torch import Size
label_desc: Use image node_id 1 for calling the TestContainers obj's underlying member method code with example usage: obj.test_base() without return types