@staticmethod<EOL><INDENT>def _validate_cores(cores):<DEDENT>
if cores == <NUM_LIT:1> or cores % <NUM_LIT:2> == <NUM_LIT:0>:<EOL><INDENT>return cores<EOL><DEDENT>else:<EOL><INDENT>return cores + <NUM_LIT:1><EOL><DEDENT>
Make sure cores is either one or even.