code: def _install_app_command(
      name: str, yes: bool, version: str, overwrite: bool = False
  ) -> None:
      if "github.com" in name:
          if version != "latest":
              logger.warn(
                  "When installing from GitHub, only the 'latest' version is supported. "
                  f"The provided version ({version}) will be ignored."
              )
          return non_gallery_app(name, yes, overwrite=overwrite)
  
      return gallery_app(name, yes, version, overwrite=overwrite)
  
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 4 for calling a global function with example usage: _install_app_command(name, yes, version, overwrite) and returns: gallery_app, non_gallery_app