code: def test_app_install(tmpdir, monkeypatch):
      """Tests unpublished app install."""
      monkeypatch.chdir(tmpdir)
  
      real_app = "https://github.com/Lightning-AI/install-app"
      test_app_pip_name = "install-app"
  
      # install app and verify it's in the env
      subprocess.check_output(
          f"lightning install app {real_app} --yes", shell=True
      )
      new_env_output = subprocess.check_output("pip freeze", shell=True)
      assert test_app_pip_name in str(
          new_env_output
      ), f"{test_app_pip_name} should be in the env"
  
imports: import os
  import subprocess
  from pathlib import Path
  from unittest import mock
  import pytest
  from click.testing import CliRunner
  from lightning.app.cli import cmd_install, lightning_cli
  from lightning.app.testing.helpers import _RunIf
label_desc: Use image node_id 3 for calling a global function with example usage: test_app_install(tmpdir, monkeypatch) without return types