code: def _handle_command_without_client(
      command: str, metadata: Dict, url: str
  ) -> None:
      supported_params = list(metadata["parameters"])
      if _is_running_help(sys.argv):
          print(f"Usage: lightning {command} [ARGS]...")
          print(" ")
          print("Options")
          for param in supported_params:
              print(f"  {param}: Add description")
          return
  
      provided_params = [
          param.replace("--", "")
          for param in sys.argv[1 + len(command.split("_")) :]
      ]
  
      # TODO: Add support for more argument types.
      if any("=" not in param for param in provided_params):
          raise Exception(
              "Please, use --x=y syntax when providing the command arguments."
          )
  
      if any(
          param.split("=")[0] not in supported_params
          for param in provided_params
      ):
          raise Exception(
              f"Some arguments need to be provided. The keys are {supported_params}."
          )
  
      # TODO: Encode the parameters and validate their type.
      query_parameters = "&".join(provided_params)
      resp = requests.post(
          url + f"/command/{command}?{query_parameters}"
      )
      assert resp.status_code == 200, resp.json()
      print(resp.json())
  
file_path: pytorch-lightning/src/lightning/app/cli/commands/app_commands.py
imports: import os
  import sys
  from typing import Dict, Optional
  import requests
  from lightning.app.cli.connect.app import _clean_lightning_connection, _install_missing_requirements, _resolve_command_path
  from lightning.app.utilities.cli_helpers import _LightningAppOpenAPIRetriever
  from lightning.app.utilities.commands.base import _download_command
  from lightning.app.utilities.enum import OpenAPITags
label_desc: Use image node_id 3 for calling a global function with example usage: _handle_command_without_client(command, metadata, url) without return types