code: def test_bandit(self):
      X = np.array(
          [
              [0, -2, -1],
              [0, 0, 1],
              [1, -2, -1],
              [1, 0, 1],
              [3, -2, -1],
              [3, 0, 1],
          ]
      )
  
      space = [{"name": "var", "type": "bandit", "domain": X}]
  
      design_space = Design_space(space)
  
      self.assertTrue(design_space._has_bandit())
      self.assertTrue(design_space.unzip_inputs(X).all() == X.all())
      self.assertTrue(design_space.zip_inputs(X).all() == X.all())
  
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 18 for calling the TestDesignSpace obj's underlying member method code with example usage: obj.test_bandit() without return types