code: def buildDmlCorpus(config):
      dml = dmlcorpus.DmlCorpus()
      dml.processConfig(config, shuffle=True)
      dml.buildDictionary()
      dml.dictionary.filterExtremes(
          noBelow=5, noAbove=0.3
      )  # ignore too (in)frequent words
  
      dml.save(config.resultFile(".pkl"))
      dml.saveAsText()  # save id mappings and documents as text data (matrix market format)
      return dml
  
imports: import logging
  import sys
  import os.path
  from gensim.corpora import sources, dmlcorpus
label_desc: Use image node_id 1 for calling a global function with example usage: buildDmlCorpus(config) and returns: dml