code: def progress_generator(duration):
      interval = duration / 20
      for i in range(20):
          yield (i + 1) / 20, interval
  
imports: from io import StringIO
  import math
  import random
  import time
  from h2o.utils.progressbar import ProgressBar, ProgressBarWidget, PBWBar, PBWPercentage, PBWString, RenderResult
label_desc: Use image node_id 1 for calling a global function with example usage: progress_generator(duration) without return types