code: def test_constrained_call():
      def square(x):
          return np.sum(x**2)
  
      assert square(2) == 4
  
      def square2(x, y):
          return x**2 + y**2
  
      assert square2(2, 2) == 8
  
      def c_1(x):
          return x[0] + x[1] <= 0
  
      new_constrained_function = constrained.ConstrainedFunction(
          square, [c_1], 100
      )
  
      assert new_constrained_function(np.zeros(2)) == 0
      assert new_constrained_function(np.ones(2)) == 202
  
file_path: opytimizer/tests/opytimizer/functions/test_constrained.py
imports: import numpy
  from opytimizer.functions import constrained
  from opytimizer.utils import constant
label_desc: Use image node_id 12 for calling a global function with example usage: test_constrained_call() and returns: np, unknown, unknown