def METHOD_NAME(self, resources: dict, token: str, fl_ctx: FLContext):
    with self._lock:
        self.log_debug(fl_ctx, f"freeing resources: {resources}.")
        self.log_debug(
            fl_ctx, f"current resources: {self.resources}, reserved_resources {self.reserved_resources}."
        )
        self._deallocate(resources=resources)