code: def non_gallery_component(
      gh_url: str, yes_arg: bool, cwd: Optional[str] = None
  ) -> None:
      # give the user the chance to do a manual install
      git_url = _show_non_gallery_install_component_prompt(
          gh_url, yes_arg
      )
  
      # run installation if requested
      _install_component_from_source(git_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 8 for calling a global function with example usage: non_gallery_component(gh_url, yes_arg, cwd) without return types