code: def _check_call_verbose(cmd, **kwargs) -> None:
      """
      Similar to subprocess.check_call(cmd), but if the exit code is non-zero
      then the raised Exception's message provides more detail, including
      the stdout/stderr provided by the subprocess.
      """
      try:
          subprocess.run(
              cmd,
              check=True,
              encoding="UTF-8",
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
              **kwargs,
          )
      except subprocess.CalledProcessError as err:
          error_msg = (
              f"{err}\nstdout:\n{err.stdout}\nstderr:\n{err.stderr}"
          )
          raise Exception(error_msg)
  
imports: import abc
  import datetime
  import logging
  import multiprocessing
  import os
  import pathlib
  import signal
  import socket
  import stat
  import random
  import string
  import subprocess
  import sys
  import tempfile
  from typing import Union
  from tvm.contrib.hexagon.hexagon_profiler import HexagonProfiler
  from ..._ffi import libinfo
  from .session import Session
  from .tools import HEXAGON_SIMULATOR_NAME
label_desc: Use image node_id 1 for calling a global function with example usage: _check_call_verbose(cmd) without return types