code: def _format_state_result(name, result, changes=None, comment=''):
      '''
      Creates the state result dictionary.
      '''
      if changes is None:
          changes = {'old': '', 'new': ''}
      return {'name': name, 'result': result,
              'changes': changes, 'comment': commentf _format_state_result(name, result, changes=None, comment=''):
      '''
      Creates the state result dictionary.
      '''
      if changes is None:
          changes = {'old': '', 'new': ''}
      return {'name': name, 'result': result,
              'changes': changes, 'comment': comment}
docs: Creates the state result dictionary.