code: def _prepare_work_stop(self, app, work):
      app_id = self._get_app_id()
      project_id = self._get_project_id()
      assert project_id
  
      client = LightningClient()
      list_apps_resp = client.lightningapp_instance_service_list_lightningapp_instances(
          project_id=project_id
      )
      lit_app: Optional[Externalv1LightningappInstance] = None
  
      for lapp in list_apps_resp.lightningapps:
          if lapp.id == app_id:
              lit_app = lapp
  
      assert lit_app
  
      network_config = self.work_to_network_configs[work.name]
  
      for nc in lit_app.spec.network_config:
          if nc.host == network_config.host:
              nc.enable = False
  
      client.lightningapp_instance_service_update_lightningapp_instance(
          project_id=project_id,
          id=lit_app.id,
          body=AppinstancesIdBody(name=lit_app.name, spec=lit_app.spec),
      )
  
      del self.work_to_network_configs[work.name]
  
imports: import os
  from typing import Optional
  from lightning_cloud.openapi import AppinstancesIdBody, Externalv1LightningappInstance
  from lightning.app.core import constants
  from lightning.app.core.queues import QueuingSystem
  from lightning.app.launcher.lightning_backend import CloudBackend
  from lightning.app.runners.backends.backend import Backend
  from lightning.app.runners.backends.mp_process import MultiProcessingBackend
  from lightning.app.utilities.network import LightningClient
label_desc: Use image node_id 10 for calling the CloudHybridBackend obj's underlying member method code with example usage: obj._prepare_work_stop(app, work) without return types