code: def stop(
      name: str,
      storage_account: Ann[
          str,
          Arg(
              help="Storage account in which the cluster's container exists."
          ),
      ],
      resource_group: Ann[
          str, Arg(help="Resource group in which the cluster exists.")
      ],
      extra_hdinsight_delete_args: Optional[List[str]] = None,
      extra_storage_delete_args: Optional[List[str]] = None,
  ):
      """
      Stop an HDInsight cluster configured for Hail.
      """
      print(f"Stopping cluster '{name}'...")
  
      subprocess.check_call(
          [
              "az",
              "hdinsight",
              "delete",
              "--name",
              name,
              "--resource-group",
              resource_group,
              *(extra_hdinsight_delete_args or []),
          ]
      )
      subprocess.check_call(
          [
              "az",
              "storage",
              "container",
              "delete",
              "--name",
              name,
              "--account-name",
              storage_account,
              *(extra_storage_delete_args or []),
          ]
      )
  
file_path: hail/hail/python/hailtop/hailctl/hdinsight/cli.py
imports: import subprocess
  from typing import Optional, List, Annotated
  import typer
  from typer import Option, Argument
  from .start import start, VepVersion
  from .submit import submit
label_desc: Use image node_id 2 for calling a global function with example usage: stop(name, storage_account, resource_group, extra_hdinsight_delete_args, extra_storage_delete_args) without return types