code: def test_components_app_example():
      runner = CliRunner()
      result = runner.invoke(
          run_app,
          [
              os.path.join(_PATH_EXAMPLES, "components/python/app.py"),
              "--blocking",
              "False",
              "--open-ui",
              "False",
          ],
          catch_exceptions=False,
      )
      assert result.exit_code == 0
      assert "tracer script succeed" in result.stdout
  
file_path: pytorch-lightning/tests/integrations_app/public/test_scripts.py
imports: import os
  import pytest
  from click.testing import CliRunner
  from lightning.app.cli.lightning_cli import run_app
  from lightning.app.testing.helpers import _run_script, _RunIf
  from integrations_app.public import _PATH_EXAMPLES
label_desc: Use image node_id 2 for calling a global function with example usage: test_components_app_example() without return types