class_docstr: A ``LightningPlugin`` is a single-file Python class that can be executed within a cloudspace to perform
  actions.
class_docstr_tok: ["A","``","LightningPlugin","``","is","a","single-file","Python","class","that","can","be","executed","within","a","cloudspace","to","perform","actions","."]
code: def __init__(self) -> None:
      self.project_id = ""
      self.cloudspace_id = ""
      self.cluster_id = ""
      self.source_app = ""
  
imports: import os
  import shutil
  import tarfile
  import tempfile
  from pathlib import Path
  from typing import Any, Dict
  from urllib.parse import urlparse
  import requests
  import uvicorn
  from fastapi import FastAPI, HTTPException, status
  from fastapi.middleware.cors import CORSMiddleware
  from lightning_cloud.openapi import Externalv1LightningappInstance
  from pydantic import BaseModel
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.component import _set_flow_context
  from lightning.app.utilities.enum import AppStage
  from lightning.app.utilities.load_app import _load_plugin_from_file
label_desc: Use image node_id 1 to create a new LightningPlugin object  with example: obj = LightningPlugin()