code: def check_extension(ext_name, 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. ".format(ext_name)
          )
  
file_path: bluefog/bluefog/common/util.py
imports: from contextlib import contextmanager
  from multiprocessing import Process, Queue
  import os
  import sysconfig
label_desc: Use image node_id 4 for calling a global function with example usage: check_extension(ext_name, pkg_path) without return types