code: def _fromiter(it, dtype, count, progress, log):
      
      if progress > 0:
          it = _iter_withprogress(it, progress, log)
      if count is not None:
          a = np.fromiter(it, dtype=dtype, count=count)
      else:
          a = np.fromiter(it, dtype=dtype)
      return a
docs: Utility function to load an array from an iterator.