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