code: def _delete_work(self, work_resp: Externalv1Lightningwork) -> None:
      spec: V1LightningworkSpec = work_resp.spec
      if spec.desired_state == V1LightningworkState.DELETED:
          # work is set to be deleted. Do nothing
          return
      spec.desired_state = V1LightningworkState.DELETED
      self.client.lightningwork_service_update_lightningwork(
          project_id=CloudBackend._get_project_id(),
          id=work_resp.id,
          spec_lightningapp_instance_id=CloudBackend._get_app_id(),
          body=WorksIdBody(spec),
      )
      print(f"Deleting {work_resp.name} ...")
  
imports: import inspect
  import json
  import logging
  import os
  import random
  import string
  import urllib
  from time import monotonic, sleep, time
  from typing import List, Optional
  from lightning_cloud.openapi import AppinstancesIdBody, Externalv1LightningappInstance, Externalv1Lightningwork, V1BuildSpec, V1Drive, V1DriveSpec, V1DriveStatus, V1DriveType, V1Flowserver, V1LightningappInstanceState, V1LightningappRestartPolicy, V1LightningworkClusterDriver, V1LightningworkDrives, V1LightningworkSpec, V1LightningworkState, V1ListLightningworkResponse, V1Metadata, V1NetworkConfig, V1PackageManager, V1PythonDependencyInfo, V1SourceType, V1UserRequestedComputeConfig
  from lightning_cloud.openapi.rest import ApiException
  from lightning.app.core import LightningApp, LightningWork
  from lightning.app.core.queues import QueuingSystem
  from lightning.app.runners.backends.backend import Backend
  from lightning.app.storage import Drive, Mount
  from lightning.app.utilities.enum import WorkStageStatus, WorkStopReasons, make_status
  from lightning.app.utilities.exceptions import LightningPlatformException
  from lightning.app.utilities.network import LightningClient, _check_service_url_is_ready
  from lightning_cloud.openapi import SpecLightningappInstanceIdWorksBody, WorksIdBody
label_desc: Use image node_id 16 for calling the CloudBackend obj's underlying member method code with example usage: obj._delete_work(work_resp) without return types