(cores)
Make sure cores is either one or even.
Make sure cores is either one or even.
Make sure cores is either one or even .
def _validate_cores(cores):
    """Make sure cores is either one or even."""
    if cores == 1 or cores % 2 == 0:
      return cores
    else:
      return cores + 1
def _validate_cores ( cores ) : if cores == 1 or cores % 2 == 0 : return cores else : return cores + 1