code: def get_chrome_path():
      system = platform.system()
  
      if system == "Darwin":
          return "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
  
      release = platform.uname().release
      is_wsl = "Microsoft" in release or "microsoft" in release
  
      if system == "Linux" and not is_wsl:
          for c in ["chromium", "chromium-browser", "chrome.exe"]:
              chrome = shutil.which(c)
              if chrome:
                  return chrome
  
          raise EnvironmentError(
              "cannot find 'chromium', 'chromium-browser', or 'chrome.exe' on path"
          )
  
      if system == "Windows" or (system == "Linux" and is_wsl):
          # https://stackoverflow.com/questions/40674914/google-chrome-path-in-windows-10
          fnames = [
              "/mnt/c/Program Files/Google/Chrome/Application/chrome.exe",
              "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
              "/mnt/c/Program Files(x86)/Google/Chrome/Application/chrome.exe",
              "/mnt/c/ProgramFiles(x86)/Google/Chrome/Application/chrome.exe",
          ]
  
          for fname in fnames:
              if os.path.exists(fname):
                  return fname
  
      raise ValueError(
          f"unsupported system: {system}, set environment variable HAILCTL_CHROME to a chrome executable"
      )
  
file_path: hail/hail/python/hailtop/hailctl/dataproc/connect.py
imports: from enum import Enum
  import os
  import platform
  import shutil
  import subprocess
  import tempfile
  from typing import Optional, List
  from .None import gcloud
label_desc: Use image node_id 2 for calling a global function with example usage: get_chrome_path() and returns: str, chrome, fname