code: def _sigterm_flow_handler(*_, app: "lightning.app.LightningApp"):
      app.stage = AppStage.STOPPING
  
file_path: pytorch-lightning/src/lightning/app/utilities/cloud.py
imports: import os
  from typing import Optional
  from lightning_cloud.openapi import V1Membership
  import lightning.app
  from lightning.app.core.constants import LIGHTNING_CLOUD_PROJECT_ID
  from lightning.app.utilities.enum import AppStage
  from lightning.app.utilities.network import LightningClient
label_desc: Use image node_id 2 for calling a global function with example usage: _sigterm_flow_handler() without return types