code: def test_hs_params_setter():
      new_hs = hs.HS()
  
      try:
          new_hs.HMCR = "a"
      except:
          new_hs.HMCR = 0.5
  
      try:
          new_hs.HMCR = -1
      except:
          new_hs.HMCR = 0.5
  
      assert new_hs.HMCR == 0.5
  
      try:
          new_hs.PAR = "b"
      except:
          new_hs.PAR = 0.5
  
      try:
          new_hs.PAR = -1
      except:
          new_hs.PAR = 0.5
  
      assert new_hs.PAR == 0.5
  
      try:
          new_hs.bw = "c"
      except:
          new_hs.bw = 5
  
      try:
          new_hs.bw = -1
      except:
          new_hs.bw = 5
  
      assert new_hs.bw == 5
  
      assert new_hs.bw == 5
  
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.evolutionary import hs
  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_hs_params_setter() without return types