code: def check_extension(ext_name, ext_env_var, pkg_path, *args):
      full_path = get_extension_full_path(pkg_path, *args)
      if not os.path.exists(full_path):
          raise ImportError(
              "Extension {} has not been built: {} not found\n"
              "If this is not expected, reinstall Horovod with {}=1 to debug the build error.".format(
                  ext_name, full_path, ext_env_var
              )
          )
  
imports: import json
  import multiprocessing
  import os
  import sys
  import sysconfig
  import warnings
  from contextlib import contextmanager
  from horovod.common.exceptions import get_version_mismatch_message, HorovodVersionMismatchError
label_desc: Use image node_id 3 for calling a global function with example usage: check_extension(ext_name, ext_env_var, pkg_path) without return types