@staticmethod
    def save_corpus(fname, corpus, id2word=None, progress_cnt=1000, metadata=False):
        logger.info("storing corpus in Matrix Market format to %s" % fname)
        num_terms = len(id2word) if id2word is not None else None
        return matutils.MmWriter.write_corpus(fname, corpus, num_terms=num_terms, index=True, progress_cnt=progress_cnt, metadata=metadata)

# endclass MmCorpus
Checks whether the transaction manager is in manual or in auto state.
dataset/ETHPy150Open largelymfs/topical_word_embeddings/TWE-1/gensim/corpora/mmcorpus.py/MmCorpus.save_corpus--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/transaction.py/is_managed