code: def test_submit(gcloud_run):
      runner.invoke(cli.app, ["submit", "test-cluster", "a-script.py"])
      gcloud_args = gcloud_run.call_args[0][0]
      assert gcloud_args[:5] == [
          "dataproc",
          "jobs",
          "submit",
          "pyspark",
          "a-script.py",
      ]
      assert "--cluster=test-cluster" in gcloud_args
  
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 1 for calling a global function with example usage: test_submit(gcloud_run) without return types