code: def _install(
      directory: Annotated[
          Path,
          Argument(
              help="The directory containing the custom components."
          ),
      ] = Path("."),
      npm_install: Annotated[
          str,
          Option(
              help="NPM install command to use. Default is 'npm install'."
          ),
      ] = "npm install",
  ):
      npm_install = _get_npm(npm_install)
      with LivePanelDisplay() as live:
          _install_command(directory, live, npm_install)
  
file_path: gradio/gradio/cli/commands/components/install_component.py
imports: import shutil
  import subprocess
  from pathlib import Path
  from rich.markup import escape
  from typer import Argument, Option
  from typing_extensions import Annotated
  from gradio.cli.commands.display import LivePanelDisplay
  from gradio.utils import set_directory
label_desc: Use image node_id 3 for calling a global function with example usage: _install(directory, npm_install) without return types