code: def _show_non_gallery_install_component_prompt(
      gh_url: str, yes_arg: bool
  ) -> str:
      if ".git@" not in gh_url:
          m = """
          Error, your github url must be in the following format:
          git+https://github.com/OrgName/repo-name.git@ALongCommitSHAString
  
          Example:
          git+https://github.com/Lightning-AI/LAI-slack-messenger.git@14f333456ffb6758bd19458e6fa0bf12cf5575e1
          """
          raise SystemExit(m)
  
      developer = gh_url.split("/")[3]
      component_name = gh_url.split("/")[4].split(".git")[0]
      repo_url = re.search(r"git\+(.*).git", gh_url).group(1)  # type: ignore
  
      # 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
  
      prompt = f"""
      ⚡ Installing Lightning component ⚡
  
      component name : {component_name}
      developer      : {developer}
  
      ⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡
      WARNING: this is NOT an official Lightning Gallery component
      Install at your own risk
      ⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡⚡
  
      Installation runs the following command for you:
  
      pip install {gh_url}
      """
      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
      except KeyboardInterrupt:
          raise SystemExit(
              f"""
          ⚡ Installation aborted! ⚡
  
          Install the component yourself by visiting:
          {repo_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 12 for calling a global function with example usage: _show_non_gallery_install_component_prompt(gh_url, yes_arg) and returns: gh_url, gh_url