code: def test_hailctl_chrome(subprocess, monkeypatch):
      monkeypatch.setattr(
          "hailtop.hailctl.dataproc.connect.get_chrome_path",
          Mock(side_effect=Exception("Unable to find chrome")),
      )
      monkeypatch.setenv("HAILCTL_CHROME", "/path/to/chrome.exe")
  
      runner.invoke(cli.app, ["connect", "test-cluster", "notebook"])
      popen_args = subprocess.Popen.call_args[0][0]
      assert popen_args[0] == "/path/to/chrome.exe"
  
file_path: hail/hail/python/test/hailtop/hailctl/dataproc/test_connect.py
imports: from unittest.mock import Mock
  from typer.testing import CliRunner
  import pytest
  from hailtop.hailctl.dataproc import cli
label_desc: Use image node_id 7 for calling a global function with example usage: test_hailctl_chrome(subprocess, monkeypatch) without return types