code: def _format_return_data(retcode, stdout=None, stderr=None):
      '''
      Creates a dictionary from the parameters, which can be used to return data
      to Salt.
      '''
      ret = {'retcode': retcode}
      if stdout is not None:
          ret['stdout'] = stdout
      if stderr is not None:
          ret['stderr'] = stderr
      return ref _format_return_data(retcode, stdout=None, stderr=None):
      '''
      Creates a dictionary from the parameters, which can be used to return data
      to Salt.
      '''
      ret = {'retcode': retcode}
      if stdout is not None:
          ret['stdout'] = stdout
      if stderr is not None:
          ret['stderr'] = stderr
      return ret
docs: Creates a dictionary from the parameters, which can be used to return data
      to Salt.