code: def test_botorch_warnings_hierarchy(self):
      self.assertIsInstance(BotorchWarning(), Warning)
      self.assertIsInstance(
          BadInitialCandidatesWarning(), BotorchWarning
      )
      self.assertIsInstance(CostAwareWarning(), BotorchWarning)
      self.assertIsInstance(InputDataWarning(), BotorchWarning)
      self.assertIsInstance(OptimizationWarning(), BotorchWarning)
      self.assertIsInstance(SamplingWarning(), BotorchWarning)
      self.assertIsInstance(
          BotorchTensorDimensionWarning(), BotorchWarning
      )
      self.assertIsInstance(UserInputWarning(), BotorchWarning)
  
file_path: botorch/test/exceptions/test_warnings.py
imports: import warnings
  from botorch import settings
  from botorch.exceptions.warnings import BadInitialCandidatesWarning, BotorchTensorDimensionWarning, BotorchWarning, CostAwareWarning, InputDataWarning, OptimizationWarning, SamplingWarning, UserInputWarning
  from botorch.utils.testing import BotorchTestCase
label_desc: Use image node_id 1 for calling the TestBotorchWarnings obj's underlying member method code with example usage: obj.test_botorch_warnings_hierarchy() without return types