def CreateStandbyPolicy(messages, initial_delay_sec):
  """Creates standby policy from args."""
  # pylint: disable=g-explicit-bool-comparison
  if initial_delay_sec is None:
    return None
  return messages.InstanceGroupManagerStandbyPolicy(
      initialDelaySec=initial_delay_sec)