code: def is_running_in_cloud() -> bool:
      """Returns True if the Lightning App is running in the cloud."""
      return (
          bool(int(os.environ.get("LAI_RUNNING_IN_CLOUD", "0")))
          or "LIGHTNING_APP_STATE_URL" in os.environ
      )
  
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 3 for calling a global function with example usage: is_running_in_cloud() and returns: unknown