def check_valid(line0, line1):
data = line0.strip().split(b'<STR_LIT:U+0020>')<EOL>if len(data) <= <NUM_LIT:2>:<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>map(float, data[<NUM_LIT:2>:])<EOL><DEDENT>except:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if a file is valid Glove format.

Args:
    line0 (bytes): First line of the file
    line1 (bytes): Second line of the file

Returns:
    boo: ``True`` if it is valid. ``False`` if it is invalid.