<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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!"