code: def _show_install_app_prompt(
      entry: Dict[str, str],
      app: str,
      org: str,
      yes_arg: bool,
      resource_type: str,
  ) -> Tuple[str, str, str, Optional[str]]:
      source_url = entry[
          "sourceUrl"
      ]  # This URL is used only to display the repo and extract folder name
      full_git_url = entry[
          "gitUrl"
      ]  # Used to clone the repo (can include tokens for private repos)
      git_url_parts = full_git_url.split("#ref=")
      git_url = git_url_parts[0]
      git_sha = git_url_parts[1] if len(git_url_parts) == 2 else None
  
      folder_name = source_url.split("/")[-1]
  
      # yes arg does not prompt the user for permission to install anything
      # automatically creates env and sets up the project
      if yes_arg:
          return source_url, git_url, folder_name, git_sha
  
      prompt = f"""
      ⚡ Installing Lightning {resource_type} ⚡
  
      {resource_type} name : {app}
      developer: {org}
  
      Installation creates and runs the following commands for you:
  
      git clone {source_url}
      cd {folder_name}
      pip install -r requirements.txt
      pip install -e .
      """
      logger.info(prompt)
  
      try:
          value = input("\nPress enter to continue:   ")
          value = value.strip().lower()
          should_install = len(value) == 0 or value in {"y", "yes", 1}
          if not should_install:
              raise KeyboardInterrupt()
  
          return source_url, git_url, folder_name, git_sha
      except KeyboardInterrupt:
          repo = entry["sourceUrl"]
          raise SystemExit(
              f"""
          ⚡ Installation aborted! ⚡
  
          Install the {resource_type} yourself by visiting:
          {repo}
          """
          )
  
imports: import os
  import re
  import shutil
  import subprocess
  import sys
  from typing import Dict, Optional, Tuple
  import click
  import requests
  from packaging.version import Version
  from lightning.app.core.constants import LIGHTNING_APPS_PUBLIC_REGISTRY, LIGHTNING_COMPONENT_PUBLIC_REGISTRY
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 13 for calling a global function with example usage: _show_install_app_prompt(entry, app, org, yes_arg, resource_type) and returns: source_url,  git_url,  folder_name,  git_sha, source_url,  git_url,  folder_name,  git_sha