code: func VerifyVolumePathsForVMDevices(vmDevices object.VirtualDeviceList, volPaths []string, nodeName string, nodeVolumeMap map[string]map[string]bool) {
  	volPathsMap := make(map[string]bool)
  	for _, volPath := range volPaths {
  		volPathsMap[volPath] = true
  	}
  	// Verify if the volume paths are present on the VM backing virtual disk devices
  	for _, device := range vmDevices {
  		if vmDevices.TypeName(device) == "VirtualDisk" {
  			virtualDevice := device.GetVirtualDevice()
  			if backing, ok := virtualDevice.Backing.(*types.VirtualDiskFlatVer2BackingInfo); ok {
  				if volPathsMap[backing.FileName] {
  					setNodeVolumeMap(nodeVolumeMap, backing.FileName, nodeName, true)
  				}
  			}
  		}
  	}
  
  }
docs: // VerifyVolumePathsForVMDevices verifies if the volume paths (volPaths) are attached to VM.