code: def dots(it, label="", hide=None, every=1):
      
      count = 0
      if not hide:
          STREAM.write(label)
      for i, item in enumerate(it):
          if not hide:
              if i % every == 0:  # True every "every" updates
                  STREAM.write(DOTS_CHAR)
                  sys.stderr.flush()
          count += 1
          yield item
  
      STREAM.write("\n")
      STREAM.flush()
docs: Progress iterator. Prints a dot for each item being iterated