code: def check_gcloud_version(beta: BetaOption = False):
      global use_gcloud_beta
      use_gcloud_beta = beta
  
      try:
          gcloud_version = gcloud.get_version()
          if gcloud_version < MINIMUM_REQUIRED_GCLOUD_VERSION:
              sys.exit(
                  f"hailctl dataproc requires Google Cloud SDK (gcloud) version {'.'.join(map(str, MINIMUM_REQUIRED_GCLOUD_VERSION))} or higher",
              )
      except Exception:
          # If gcloud's output format changes in the future and the version can't be parsed,
          # then continue and attempt to run gcloud.
          print(
              "Warning: unable to determine Google Cloud SDK version",
              file=sys.stderr,
          )
  
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 1 for calling a global function with example usage: check_gcloud_version(beta) without return types