code: def modify(
      ctx: typer.Context,
      name: str,
      num_workers: NumWorkersOption = None,
      num_secondary_workers: NumSecondaryWorkersOption = None,
      graceful_decommission_timeout: Ann[
          Optional[str],
          Opt(
              "--graceful-decommision-timeout",
              "--graceful",
              help='If set, cluster size downgrade will use graceful decommissioning with the given timeout (e.g. "60m").',
          ),
      ] = None,
      max_idle: Ann[
          Optional[str],
          Opt(
              help='New maximum idle time before shutdown (e.g. "60m").'
          ),
      ] = None,
      no_max_idle: Ann[
          bool,
          Opt(
              "--no-max-idle",
              help="Disable auto deletion after idle time.",
          ),
      ] = False,
      expiration_time: Ann[
          Optional[str],
          Opt(
              help=(
                  'The time when cluster will be auto-deleted. (e.g. "2020-01-01T20:00:00Z"). '
                  "Execute gcloud topic datatimes for more information."
              )
          ),
      ] = None,
      max_age: Ann[
          Optional[str],
          Opt(
              help=(
                  'If the cluster is older than this, it will be auto-deleted. (e.g. "2h")'
                  "Execute gcloud topic datatimes for more information."
              )
          ),
      ] = None,
      no_max_age: Ann[
          bool,
          Opt(
              "--no-max-age",
              help="Disable auto-deletion due to max age or expiration time.",
          ),
      ] = False,
      dry_run: DryRunOption = False,
      zone: ZoneOption = None,
      update_hail_version: Ann[
          bool,
          Opt(
              help="Update the version of hail running on cluster to match the currently installed version."
          ),
      ] = False,
      wheel: Ann[
          Optional[str], Opt(help="New Hail installation.")
      ] = None,
  ):
      """
      Modify an active dataproc cluster with name NAME.
      """
      dataproc_modify(
          name,
          num_workers,
          num_secondary_workers,
          graceful_decommission_timeout,
          max_idle,
          no_max_idle,
          expiration_time,
          max_age,
          no_max_age,
          dry_run,
          zone,
          update_hail_version,
          wheel,
          use_gcloud_beta,
          ctx.args,
      )
  
file_path: hail/hail/python/hailtop/hailctl/dataproc/cli.py
imports: import sys
  import typer
  from typer import Option, Argument
  from typing import List, Optional, Annotated
  from .connect import connect, DataprocConnectService
  from .submit import submit
  from .diagnose import diagnose
  from .modify import modify
  from .start import start, VepVersion
  from ..describe import describe
  from .None import gcloud
label_desc: Use image node_id 8 for calling a global function with example usage: modify(ctx, name, num_workers, num_secondary_workers, graceful_decommission_timeout, max_idle, no_max_idle, expiration_time, max_age, no_max_age, dry_run, zone, update_hail_version, wheel) without return types