code: def version():
      '''
      Returns a dictionary of Docker version information. Equivalent to running
      the ``docker version`` Docker CLI command.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.version
      '''
      ret = _client_wrapper('version')
      version_re = re.compile(VERSION_RE)
      if 'Version' in ret:
          match = version_re.match(six.text_type(ret['Version']))
          if match:
              ret['VersionInfo'] = tuple(
                  [int(x) for x in match.group(1).split('.')]
              )
      if 'ApiVersion' in ret:
          match = version_re.match(six.text_type(ret['ApiVersion']))
          if match:
              ret['ApiVersionInfo'] = tuple(
                  [int(x) for x in match.group(1).split('.')]
              )
      return ref version():
      '''
      Returns a dictionary of Docker version information. Equivalent to running
      the ``docker version`` Docker CLI command.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.version
      '''
      ret = _client_wrapper('version')
      version_re = re.compile(VERSION_RE)
      if 'Version' in ret:
          match = version_re.match(six.text_type(ret['Version']))
          if match:
              ret['VersionInfo'] = tuple(
                  [int(x) for x in match.group(1).split('.')]
              )
      if 'ApiVersion' in ret:
          match = version_re.match(six.text_type(ret['ApiVersion']))
          if match:
              ret['ApiVersionInfo'] = tuple(
                  [int(x) for x in match.group(1).split('.')]
              )
      return ret
docs: Returns a dictionary of Docker version information. Equivalent to running
      the ``docker version`` Docker CLI command.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.version