code: def set_restart_power_failure(enabled):
      '''
      Set whether or not the computer will automatically restart after a power
      failure.
  
      :param bool enabled: True to enable, False to disable. "On" and "Off" are
          also acceptable values. Additionally you can pass 1 and 0 to represent
          True and False respectively
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' power.set_restart_power_failure True
      '''
      state = salt.utils.mac_utils.validate_enabled(enabled)
      cmd = 'systemsetup -setrestartpowerfailure {0}'.format(state)
      salt.utils.mac_utils.execute_return_success(cmd)
  
      return salt.utils.mac_utils.confirm_updated(
          state,
          get_restart_power_failure,
      f set_restart_power_failure(enabled):
      '''
      Set whether or not the computer will automatically restart after a power
      failure.
  
      :param bool enabled: True to enable, False to disable. "On" and "Off" are
          also acceptable values. Additionally you can pass 1 and 0 to represent
          True and False respectively
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' power.set_restart_power_failure True
      '''
      state = salt.utils.mac_utils.validate_enabled(enabled)
      cmd = 'systemsetup -setrestartpowerfailure {0}'.format(state)
      salt.utils.mac_utils.execute_return_success(cmd)
  
      return salt.utils.mac_utils.confirm_updated(
          state,
          get_restart_power_failure,
      )
docs: Set whether or not the computer will automatically restart after a power
      failure.
  
      :param bool enabled: True to enable, False to disable. "On" and "Off" are
          also acceptable values. Additionally you can pass 1 and 0 to represent
          True and False respectively
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' power.set_restart_power_failure True