code: def assure_volume(fnc):
      
      @wraps(fnc)
      def _wrapped(self, volume, *args, **kwargs):
          if not isinstance(volume, CloudBlockStorageVolume):
              # Must be the ID
              volume = self._manager.get(volume)
          return fnc(self, volume, *args, **kwargs)
      return _wrapped
docs: Converts a volumeID passed as the volume to a CloudBlockStorageVolume object.