def IsPanicMode(mode):
  """Returns True if panic mode, False if not.

  Args:
    mode: str
  Returns:
    True or False
  """
  if mode not in PANIC_MODES:
    raise ValueError(mode)

  m = models.KeyValueCache.MemcacheWrappedGet(
      (PANIC_MODE_PREFIX, mode) % '%s%s')
  if m:
    return True
  else:
    return False
dataset/ETHPy150Open google/simian/src/simian/mac/munki/common.py/IsPanicMode/swapped operands of `%`