code: def assure_snapshot(fnc):
      
      @wraps(fnc)
      def _wrapped(self, snapshot, *args, **kwargs):
          if not isinstance(snapshot, CloudBlockStorageSnapshot):
              # Must be the ID
              snapshot = self._snapshot_manager.get(snapshot)
          return fnc(self, snapshot, *args, **kwargs)
      return _wrapped
docs: Converts a snapshot ID passed as the snapshot to a CloudBlockStorageSnapshot
      object.