code: def test_create_constraints(self):
      space = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (-1, 1),
              "dimensionality": 2,
          }
      ]
      constraints = [
          {"name": "const_1", "constraint": "x[:,0]**2 + x[:,1]**2 - 1"}
      ]
  
      design_space = Design_space(space, constraints=constraints)
  
      self.assertEqual(len(design_space.space_expanded), 2)
      self.assertTrue(design_space.has_constraints())
  
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 10 for calling the TestDesignSpace obj's underlying member method code with example usage: obj.test_create_constraints() without return types