code: def test_prompt_actions():
      # TODO: each of these installs must check that a package is installed in the environment correctly
      app_to_use = "lightning/invideo"
  
      runner = CliRunner()
  
      # assert that the user can cancel the command with any letter other than y
      result = runner.invoke(
          lightning_cli.cmd_install.install_app, [app_to_use], input="b"
      )
      assert "Installation aborted!" in result.output
  
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 7 for calling a global function with example usage: test_prompt_actions() without return types