docs: def check_format(inputfile):
      """
      Check format of inputfile.
      """
      t = word_embedding.classify_format(inputfile)
      if t == word_embedding._glove:
          _echo_format_result('glove')
      elif t == word_embedding._word2vec_bin:
          _echo_format_result('word2vec-binary')
      elif t == word_embedding._word2vec_text:
          _echo_format_result('word2vec-text')
      else:
          assert not "Should not get here!"