code: def gen_R():
      np.random.seed(22)
      R = np.random.rand(64, 64) > 0.68
      yield R
      yield R * 24.0
  
      R = np.random.rand(32, 64) > 0.68
      yield R
  
      R = np.random.rand(64, 64) > 0.68
      yield R[:32, :]
  
      R = np.random.rand(64, 64) > 0.68
      yield R[:23, :]
  
file_path: mahotas/mahotas/tests/test_majority.py
imports: import numpy
  import mahotas.morph
  from scipy import ndimage
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: gen_R() without return types