code: def test_nds_params_setter():
      new_nds = nds.NDS()
  
      try:
          new_nds.n_pareto_points = "a"
      except:
          new_nds.n_pareto_points = 0
  
      assert new_nds.n_pareto_points == 0
  
      try:
          new_nds.n_pareto_points = -1
      except:
          new_nds.n_pareto_points = 0
  
      assert new_nds.n_pareto_points == 0
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_nds.py
imports: import numpy
  import opytimizer.math.random
  from opytimizer.optimizers.misc import nds
  from opytimizer.spaces import pareto
label_desc: Use image node_id 2 for calling a global function with example usage: test_nds_params_setter() without return types