code: def __init__(self) -> None:
      super().__init__()
      self.react_ui = ReactUI()
      self.script_orchestrator = ScriptOrchestrator()
      self.running_in_cloud = bool(
          os.environ.get("LIGHTNING_CLOUD_APP_ID", False)
      )
  
imports: import os
  from typing import Dict, List, Optional, Union
  from core.components import TensorBoard, WeightsAndBiases
  from core.components.script_runner import ScriptRunner
  from lightning.app import LightningApp, LightningFlow
  from lightning.app.frontend import StaticWebFrontend
  from lightning.app.storage.path import Path
  from lightning.app.utilities.packaging.cloud_compute import CloudCompute
label_desc: Use image node_id 1 to create a new Main object from inherited base classes: LightningFlow with example: obj = Main()