code: def _app_logs_socket_url(
      host: str,
      project_id: str,
      app_id: str,
      token: str,
      component: str,
  ) -> str:
      return (
          f"wss://{host}/v1/projects/{project_id}/appinstances/{app_id}/logs?"
          f"token={token}&component={component}&follow=true"
      )
  
file_path: pytorch-lightning/src/lightning/app/utilities/logs_socket_api.py
imports: from typing import Callable, Optional
  from urllib.parse import urlparse
  from websocket import WebSocketApp
  from lightning.app.utilities.auth import _AuthTokenGetter
label_desc: Use image node_id 1 for calling the _LightningLogsSocketAPI obj's underlying member method code with example usage: obj._app_logs_socket_url(host, project_id, app_id, token, component) and returns: str, host, str, project_id, str, app_id, str, token, str, component, str