code: def test_beta(gcloud_run):
      runner.invoke(
          cli.app,
          ["--beta", "modify", "test-cluster", "--num-workers=2"],
      )
      assert gcloud_run.call_args[0][0][:4] == [
          "beta",
          "dataproc",
          "clusters",
          "update",
      ]
  
imports: import pytest
  from typer.testing import CliRunner
  from hailtop.hailctl.dataproc import cli
label_desc: Use image node_id 2 for calling a global function with example usage: test_beta(gcloud_run) without return types