code: def run_extension_installer(extension_dir):
      path_installer = os.path.join(extension_dir, "install.py")
      if not os.path.isfile(path_installer):
          return
  
      try:
          env = os.environ.copy()
          env[
              "PYTHONPATH"
          ] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}"
  
          stdout = run(
              f'"{python}" "{path_installer}"',
              errdesc=f"Error running install.py for extension {extension_dir}",
              custom_env=env,
          ).strip()
          if stdout:
              print(stdout)
      except Exception as e:
          errors.report(str(e))
  
imports: import logging
  import re
  import subprocess
  import os
  import shutil
  import sys
  import importlib.util
  import importlib.metadata
  import platform
  import json
  from functools import lru_cache
  from modules import cmd_args, errors
  from modules.paths_internal import script_path, extensions_dir
  from modules.timer import startup_timer
  from modules import logging_config
label_desc: Use image node_id 14 for calling a global function with example usage: run_extension_installer(extension_dir) without return types