code: def _show_non_gallery_install_app_prompt(
      gh_url: str, yes_arg: bool
  ) -> Tuple[str, str]:
      try:
          if gh_url.endswith(".git"):
              # folder_name when it's a GH url with .git
              folder_name = gh_url.split("/")[-1]
              folder_name = folder_name[:-4]
          else:
              # the last part of the url is the folder name otherwise
              folder_name = gh_url.split("/")[-1]
  
          org = re.search(r"github.com\/(.*)\/", gh_url).group(1)  # type: ignore
      except Exception:
          raise SystemExit(
              """
          Your github url is not supported. Here's the supported format:
          https://github.com/YourOrgName/your-repo-name
  
          Example:
          https://github.com/Lightning-AI/lightning
          """
          )
  
      # yes arg does not prompt the user for permission to install anything
      # automatically creates env and sets up the project
      if yes_arg:
          return gh_url, folder_name
  
      prompt = f"""
      ⚡ Installing Lightning app ⚡
  
      app source : {gh_url}
      developer  : {org}
  
      ⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡
      WARNING: this is NOT an official Lightning Gallery app
      Install at your own risk
      ⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡
  
      Installation creates and runs the following commands for you:
  
      git clone {gh_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 gh_url, folder_name
      except KeyboardInterrupt:
          raise SystemExit(
              f"""
          ⚡ Installation aborted! ⚡
  
          Install the app yourself by visiting {gh_url}
          """
          )
  
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 14 for calling a global function with example usage: _show_non_gallery_install_app_prompt(gh_url, yes_arg) and returns: gh_url,  folder_name, gh_url,  folder_name