code: def test_hc_params_setter():
      new_hc = hc.HC()
  
      try:
          new_hc.r_mean = "a"
      except:
          new_hc.r_mean = 0.1
  
      assert new_hc.r_mean == 0.1
  
      try:
          new_hc.r_var = "b"
      except:
          new_hc.r_var = 2
  
      try:
          new_hc.r_var = -1
      except:
          new_hc.r_var = 2
  
      assert new_hc.r_var == 2
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_hc.py
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.misc import hc
  from opytimizer.spaces import search
  from opytimizer.utils import constant
label_desc: Use image node_id 2 for calling a global function with example usage: test_hc_params_setter() without return types