def validate_options(options):
errors = []<EOL>if int(options['<STR_LIT>']['<STR_LIT>']) < <NUM_LIT:1>:<EOL><INDENT>errors.append(_('<STR_LIT>'))<EOL><DEDENT>if int(options['<STR_LIT>']['<STR_LIT>']) < <NUM_LIT:0> or int(options['<STR_LIT>']['<STR_LIT>']) > MAX_RATIONALE_SIZE:<EOL><INDENT>errors.append(_('<STR_LIT>'))<EOL><DEDENT>if not any(error in [_('<STR_LIT>'), _('<STR_LIT>')] for error in errors)and int(options['<STR_LIT>']['<STR_LIT>']) <= int(options['<STR_LIT>']['<STR_LIT>']):<EOL><INDENT>errors += [_('<STR_LIT>'), _('<STR_LIT>')]<EOL><DEDENT>try:<EOL><INDENT>if options['<STR_LIT>']['<STR_LIT>'] != '<STR_LIT:#>' and int(options['<STR_LIT>']['<STR_LIT>']) < <NUM_LIT:0>:<EOL><INDENT>errors.append(_('<STR_LIT>'))<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>errors.append(_('<STR_LIT>'))<EOL><DEDENT>if not errors:<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return {'<STR_LIT>': _('<STR_LIT>') + '<STR_LIT:U+002CU+0020>'.join(errors)}<EOL><DEDENT>
Validate the options that course author set up and return errors in a dict if there is any