code: def test_constrained_function_name_setter():
      new_constrained_function = constrained.ConstrainedFunction(
          pointer, []
      )
  
      try:
          new_constrained_function.name = 1
      except:
          new_constrained_function.name = "callable"
  
      assert new_constrained_function.name == "callable"
  
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 3 for calling a global function with example usage: test_constrained_function_name_setter() without return types