code: def test_grid_space_step_setter():
      new_grid_space = grid.GridSpace(1, 0.1, 0, 1)
  
      try:
          new_grid_space.step = "a"
      except:
          new_grid_space.step = np.array([0.1])
  
      assert new_grid_space.step == 0.1
  
      try:
          new_grid_space.step = np.array([0.1, 0.1])
      except:
          new_grid_space.step = np.array([0.1])
  
      assert new_grid_space.step == 0.1
  
file_path: opytimizer/tests/opytimizer/spaces/test_grid.py
imports: import numpy
  from opytimizer.spaces import grid
label_desc: Use image node_id 2 for calling a global function with example usage: test_grid_space_step_setter() without return types