code: def _main():
      import panel as pn
  
      # I use caching for efficiency reasons. It shaves off 10ms from having
      # to get_render_fn_from_environment every time
      if "lightning_render_fn" not in pn.state.cache:
          pn.state.cache["lightning_render_fn"] = _get_render_fn()
      pn.state.cache["lightning_render_fn"]()
  
file_path: pytorch-lightning/src/lightning/app/frontend/panel/panel_serve_render_fn.py
imports: import inspect
  import os
  import pydoc
  from typing import Callable
  from lightning.app.frontend.panel.app_state_watcher import AppStateWatcher
label_desc: Use image node_id 3 for calling a global function with example usage: _main() without return types