code: def test_umda_sample_position():
      new_umda = umda.UMDA()
  
      probs = np.zeros((1, 1))
  
      position = new_umda._sample_position(probs)
  
      assert position == 1
  
file_path: opytimizer/tests/opytimizer/optimizers/boolean/test_umda.py
imports: import numpy
  from opytimizer.optimizers.boolean import umda
  from opytimizer.spaces import boolean
label_desc: Use image node_id 4 for calling a global function with example usage: test_umda_sample_position() without return types