code: def _main() -> None:
      # Get the AppState
      app_state = AppState(plugin=StreamLitStatePlugin())
      work_state = _reduce_to_component_scope(
          app_state, os.environ["LIGHTNING_COMPONENT_NAME"]
      )
  
      # Create the patched work
      work_class = _get_work_class()
      patched_work = _PatchedWork(work_state, work_class)
  
      # Build and attach the model
      _build_model(patched_work)
  
      # Render
      patched_work.render()
  
imports: import abc
  import inspect
  import os
  import pydoc
  import subprocess
  import sys
  from typing import Any, Callable, Type
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.app_helpers import StreamLitStatePlugin
  from lightning.app.utilities.state import AppState
label_desc: Use image node_id 4 for calling a global function with example usage: _main() without return types