code: def init_pl_app(
      source: Union[Tuple[str], Tuple[str, str]],
      name: str,
      overwrite: bool = False,
  ) -> None:
      """Create an app from your PyTorch Lightning source files."""
      if len(source) == 1:
          script_path = source[0]
          source_dir = str(Path(script_path).resolve().parent)
      elif len(source) == 2:
          # enable type checking once https://github.com/python/mypy/issues/1178 is available
          source_dir, script_path = source  # type: ignore
      else:
          click.echo(
              f"Incorrect number of arguments. You passed ({', '.join(source)}) but only either one argument"
              f" (script path) or two arguments (root dir, script path) are allowed. Examples:\n"
              f"lightning init pl-app ./path/to/script.py\n"
              f"lightning init pl-app ./code ./code/path/to/script.py",
              err=True,
          )
          raise SystemExit(1)
  
      cmd_pl_init.pl_app(
          source_dir=source_dir,
          script_path=script_path,
          name=name,
          overwrite=overwrite,
      )
  
imports: import os
  import sys
  from pathlib import Path
  from typing import Tuple, Union
  import click
  from lightning_utilities.core.imports import RequirementCache
  from requests.exceptions import ConnectionError
  import lightning.app.core.constants
  from lightning.app import __version__
  from lightning.app.cli import cmd_init, cmd_install, cmd_pl_init, cmd_react_ui_init
  from lightning.app.cli.commands.app_commands import _run_app_command
  from lightning.app.cli.commands.cd import cd
  from lightning.app.cli.commands.cp import cp
  from lightning.app.cli.commands.logs import logs
  from lightning.app.cli.commands.ls import ls
  from lightning.app.cli.commands.pwd import pwd
  from lightning.app.cli.commands.rm import rm
  from lightning.app.cli.connect.app import _list_app_commands, _retrieve_connection_to_an_app, connect_app, disconnect_app
  from lightning.app.cli.connect.data import connect_data
  from lightning.app.cli.lightning_cli_delete import delete
  from lightning.app.cli.lightning_cli_launch import launch
  from lightning.app.cli.lightning_cli_list import get_list
  from lightning.app.core.constants import ENABLE_APP_COMMENT_COMMAND_EXECUTION, get_lightning_cloud_url
  from lightning.app.runners.cloud import CloudRuntime
  from lightning.app.runners.runtime import dispatch
  from lightning.app.runners.runtime_type import RuntimeType
  from lightning.app.utilities.app_commands import run_app_commands
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.cli_helpers import _check_environment_and_redirect, _check_version_and_upgrade, _format_input_env_variables
  from lightning.app.utilities.exceptions import _ApiExceptionHandler
  from lightning.app.utilities.login import Auth
  from lightning.app.utilities.port import _find_lit_app_port
label_desc: Use image node_id 14 for calling a global function with example usage: init_pl_app(source, name, overwrite) without return types