code: def __init__(self, *args, **kwargs):
      super(TestOptimizerCreation, self).__init__(*args, **kwargs)
  
      self.space = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (-1, 1),
              "dimensionality": 1,
          },
          {
              "name": "var_2",
              "type": "continuous",
              "domain": (-1, 1),
              "dimensionality": 1,
          },
      ]
      self.design_space = Design_space(self.space)
      self.f = lambda x: np.sum(np.sin(x))
  
file_path: GPyOpt/GPyOpt/testing/optimization_tests/test_optimizer_creation.py
imports: import numpy
  import unittest
  from GPyOpt.core.errors import InvalidVariableNameError
  from GPyOpt.core.task.space import Design_space
  from GPyOpt.optimization.optimizer import choose_optimizer
label_desc: Use image node_id 1 to create a new TestOptimizerCreation object from inherited base classes: unittest with example: obj = TestOptimizerCreation()