code: def test_script_args(gcloud_run):
      runner.invoke(
          cli.app,
          ["submit", "test-cluster", "a-script.py", "--foo", "bar"],
      )
      gcloud_args = gcloud_run.call_args[0][0]
      job_args = gcloud_args[gcloud_args.index("--") + 1 :]
      assert job_args == ["--foo", "bar"]
  
file_path: hail/hail/python/test/hailtop/hailctl/dataproc/test_submit.py
imports: from typer.testing import CliRunner
  from hailtop.hailctl.dataproc import cli
label_desc: Use image node_id 4 for calling a global function with example usage: test_script_args(gcloud_run) without return types