code: func (client *cniClient) Version(name string) (string, error) {
  	file := filepath.Join(client.pluginsPath, name)
  
  	// Check if the plugin file exists before executing it
  	_, err := os.Stat(file)
  	if err != nil {
  		return "", err
  	}
  
  	cmd := exec.Command(file, versionCommand)
  	versionInfo, err := cmd.Output()
  	if err != nil {
  		return "", err
  	}
  
  	version := &cniPluginVersion{}
  	// versionInfo is of the format
  	// {"version":"2017.06.0","dirty":true,"gitShortHash":"226db36"}
  	// Unmarshal this
  	err = json.Unmarshal(versionInfo, version)
  	if err != nil {
  		return "", errors.Wrapf(err, "ecscni: unmarshal version from string: %s", versionInfo)
  	}
  
  	return version.str(), nil
  }
docs: // Version returns the version of the plugin