class_docstr: Merges word2idx and idx2word dictionaries
  Arguments:
      id2word dictionary
      word2id dictionary
      language of the dictionary
  Usage:
      dico.index(word) - returns an index
      dico[index] - returns the word
class_docstr_tok: ["Merges","word2idx","and","idx2word","dictionaries","Arguments",":","id2word","dictionary","word2id","dictionary","language","of","the","dictionary","Usage",":","dico.index","(","word",")","-","returns","an","index","dico","[","index","]","-","returns","the","word"]
docstr: Check that the dictionary is valid.
docstr_tok: ["Check","that","the","dictionary","is","valid","."]
code: def check_valid(self):
      """
      Check that the dictionary is valid.
      """
      assert len(self.id2word) == len(self.word2id)
      for i in range(len(self.id2word)):
          assert self.word2id[self.id2word[i]] == i
  
file_path: nlp-architect/nlp_architect/data/fasttext_emb.py
imports: import os
  from six.moves import urllib
  import numpy
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 6 for calling the Dictionary obj's underlying member method code with example usage: obj.check_valid() without return types