def _valid_headerline(l):
if not l:<EOL><INDENT>return False<EOL><DEDENT>headers = l.split('<STR_LIT:\t>')<EOL>first_col = headers[<NUM_LIT:0>]<EOL>tsplit = first_col.split('<STR_LIT::>')<EOL>if len(tsplit) != <NUM_LIT:2>:<EOL><INDENT>return False<EOL><DEDENT>if tsplit[<NUM_LIT:0>] in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>return tsplit[<NUM_LIT:1>] in ('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>elif tsplit[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>if len(headers) < <NUM_LIT:2>:<EOL><INDENT>return False<EOL><DEDENT>return tsplit[<NUM_LIT:1>].replace('<STR_LIT>', '<STR_LIT>') == headers[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
return true if the given string is a valid loadfile header