code: def set_computer_name(name):
      '''
      Set the computer name
  
      :param str name: The new computer name
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.set_computer_name "Mike's Mac"
      '''
      cmd = 'systemsetup -setcomputername "{0}"'.format(name)
      __utils__['mac_utils.execute_return_success'](cmd)
  
      return __utils__['mac_utils.confirm_updated'](
          name,
          get_computer_name,
      f set_computer_name(name):
      '''
      Set the computer name
  
      :param str name: The new computer name
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.set_computer_name "Mike's Mac"
      '''
      cmd = 'systemsetup -setcomputername "{0}"'.format(name)
      __utils__['mac_utils.execute_return_success'](cmd)
  
      return __utils__['mac_utils.confirm_updated'](
          name,
          get_computer_name,
      )
docs: Set the computer name
  
      :param str name: The new computer name
  
      :return: True if successful, False if not
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.set_computer_name "Mike's Mac"