code: def test_invalid_constraint(self):
      space = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (-5, 5),
              "dimensionality": 1,
          }
      ]
      constraints = [
          {"name": "const_1", "constraint": "x[:,20]**2 - 1"}
      ]
      x = np.array([[0]])
  
      design_space = Design_space(space, constraints=constraints)
  
      with self.assertRaises(Exception):
          design_space.indicator_constraints(x)
  
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 16 for calling the TestDesignSpace obj's underlying member method code with example usage: obj.test_invalid_constraint() without return types