def verify_suff_stats(self, Dchunk, SS, lap):
    if self.savedir is not None:
      SSfile = os.path.join(self.savedir, 'SSdump-Lap%03d.dat' % (lap))
      if self.isLastBatch(lap):
        joblib.dump(SS, SSfile)
    if hasattr(Dchunk, 'nDocTotal') and Dchunk.nDocTotal < 4000:
      if self.hasMove('birth') and self.do_birth_at_lap(lap):
        if self.algParams['birth']['earlyLap'] > 0:
          pass
        elif lap < np.ceil(lap):
          assert SS.nDoc - Dchunk.nDocTotal > -0.001
        else:
          if abs(SS.nDoc - Dchunk.nDocTotal) > 0.01:
            print "WARNING @ lap %.2f | SS.nDoc=%d, nDocTotal=%d" % (lap, SS.nDoc, Dchunk.nDocTotal)
          assert abs(SS.nDoc - Dchunk.nDocTotal) < 0.01
      elif lap >= 1.0:
        assert abs(SS.nDoc - Dchunk.nDocTotal) < 0.01

    if hasattr(SS, 'N'):
      if not np.all(SS.N >= -1e-9):
        raise ValueError('N should be >= 0!')
      SS.N[SS.N < 0] = 0

  ######################################################### Load from memory
  #########################################################
Retrieve the metadata about a blob from the blob_key.
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/learnalg/MemoizedOnlineVBLearnAlg.py/MemoizedOnlineVBLearnAlg.verify_suff_stats--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/blob_download.py/_get_blob_metadata