code: def logs(app_name: str, components: List[str], follow: bool) -> None:
      """Show cloud application logs. By default, prints logs for all currently available components.
  
      Example uses:
  
      Print all application logs:
  
      $ lightning show logs my-application
  
      Print logs only from the flow (no work):
  
      $ lightning show logs my-application flow
  
      Print logs only from selected works:
  
      $ lightning show logs my-application root.work_a root.work_b
  
      """
      _show_logs(app_name, components, follow)
  
file_path: pytorch-lightning/src/lightning/app/cli/commands/logs.py
imports: from typing import List
  import click
  import rich
  from rich.color import ANSI_COLOR_NAMES
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.app_logs import _app_logs_reader
  from lightning.app.utilities.cloud import _get_project
  from lightning.app.utilities.logs_socket_api import _LightningLogsSocketAPI
  from lightning.app.utilities.network import LightningClient
label_desc: Use image node_id 1 for calling a global function with example usage: logs(app_name, components, follow) without return types