code: def assert_reproducible(func, num_iter=1):
      """
      Assert Keras models produced from calling ``func`` are reproducible.
  
      Args:
          func (callable): Function to check for reproducible model
          num_iter (int): Number of iterations to run through to validate reproducibility.
  
      """
      model = func()
      for i in range(num_iter):
          model_new = func()
          models_equals(model, model_new)
  
      # clear the tensorflow session to free memory
      tf.keras.backend.clear_session()
  
imports: import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: assert_reproducible(func, num_iter) without return types