code: func (vm *VirtualMachine) IsDiskAttached(ctx context.Context, diskPath string) (bool, error) {
  	device, err := vm.getVirtualDeviceByPath(ctx, diskPath)
  	if err != nil {
  		return false, err
  	}
  	if device != nil {
  		return true, nil
  	}
  	return false, nil
  }
docs: // IsDiskAttached checks if disk is attached to the VM.