code: def test_invalid_bandit_config(self):
      space = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (-3, 1),
              "dimensionality": 2,
          },
          {"name": "var_3", "type": "discrete", "domain": (0, 1, 2, 3)},
          {"name": "var_4", "type": "categorical", "domain": (2, 4)},
          {
              "name": "var_5",
              "type": "bandit",
              "domain": np.array([[-1], [0], [1]]),
          },
      ]
  
      with self.assertRaises(InvalidConfigError):
          design_space = Design_space(space)
  
imports: import numpy
  import unittest
  from GPyOpt.core.task.space import Design_space
  from GPyOpt.core.task.variables import BanditVariable, DiscreteVariable, CategoricalVariable, ContinuousVariable
  from GPyOpt.core.errors import InvalidConfigError
label_desc: Use image node_id 2 for calling the TestDesignSpace obj's underlying member method code with example usage: obj.test_invalid_bandit_config() without return types