code: def test_kh_params_setter():
      new_kh = kh.KH()
  
      try:
          new_kh.N_max = "a"
      except:
          new_kh.N_max = 0.01
  
      assert new_kh.N_max == 0.01
  
      try:
          new_kh.N_max = -1
      except:
          new_kh.N_max = 0.01
  
      assert new_kh.N_max == 0.01
  
      try:
          new_kh.w_n = "a"
      except:
          new_kh.w_n = 0.42
  
      assert new_kh.w_n == 0.42
  
      try:
          new_kh.w_n = 1.01
      except:
          new_kh.w_n = 0.42
  
      assert new_kh.w_n == 0.42
  
      try:
          new_kh.NN = 0.5
      except:
          new_kh.NN = 5
  
      assert new_kh.NN == 5
  
      try:
          new_kh.NN = -1
      except:
          new_kh.NN = 5
  
      assert new_kh.NN == 5
  
      try:
          new_kh.V_f = "a"
      except:
          new_kh.V_f = 0.02
  
      assert new_kh.V_f == 0.02
  
      try:
          new_kh.V_f = -1
      except:
          new_kh.V_f = 0.02
  
      assert new_kh.V_f == 0.02
  
      try:
          new_kh.w_f = "a"
      except:
          new_kh.w_f = 0.38
  
      assert new_kh.w_f == 0.38
  
      try:
          new_kh.w_f = 1.01
      except:
          new_kh.w_f = 0.38
  
      assert new_kh.w_f == 0.38
  
      try:
          new_kh.D_max = "a"
      except:
          new_kh.D_max = 0.02
  
      assert new_kh.D_max == 0.02
  
      try:
          new_kh.D_max = -1
      except:
          new_kh.D_max = 0.02
  
      assert new_kh.D_max == 0.02
  
      try:
          new_kh.C_t = "a"
      except:
          new_kh.C_t = 0.5
  
      assert new_kh.C_t == 0.5
  
      try:
          new_kh.C_t = 2.01
      except:
          new_kh.C_t = 0.5
  
      assert new_kh.C_t == 0.5
  
      try:
          new_kh.Cr = "a"
      except:
          new_kh.Cr = 0.2
  
      assert new_kh.Cr == 0.2
  
      try:
          new_kh.Cr = 1.1
      except:
          new_kh.Cr = 0.2
  
      assert new_kh.Cr == 0.2
  
      try:
          new_kh.Mu = "a"
      except:
          new_kh.Mu = 0.05
  
      assert new_kh.Mu == 0.05
  
      try:
          new_kh.Mu = 1.1
      except:
          new_kh.Mu = 0.05
  
      assert new_kh.Mu == 0.05
  
imports: import numpy
  from opytimizer.optimizers.swarm import kh
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_kh_params_setter() without return types