def strToBool(val):
if isinstance(val, str):<EOL><INDENT>val = val.lower()<EOL><DEDENT>return val in ['<STR_LIT:true>', '<STR_LIT>', '<STR_LIT:yes>', True]<EOL>
Helper function to turn a string representation of "true" into
boolean True.