code: def sync_check_exec(
      *command_args: str,
      echo: bool = False,
      capture_output: bool = False,
  ) -> None:
      if echo:
          print(command_args)
      try:
          subprocess.run(
              command_args, check=True, capture_output=capture_output
          )
      except subprocess.CalledProcessError as e:
          raise CalledProcessError(
              list(command_args), e.returncode, (e.stdout, e.stderr)
          ) from e
  
file_path: hail/hail/python/hailtop/utils/process.py
imports: from typing import Tuple, List
  import asyncio
  import subprocess
  from .utils import async_to_blocking
label_desc: Use image node_id 3 for calling a global function with example usage: sync_check_exec() without return types