code: def _find_exe(exe, paths=None):
      """Return path to an MSVC executable program.
  
      Tries to find the program in several places: first, one of the
      MSVC program search paths from the registry; next, the directories
      in the PATH environment variable.  If any of those work, return an
      absolute path that is known to exist.  If none of them work, just
      return the original program name, 'exe'.
      """
      if not paths:
          paths = os.getenv("path").split(os.pathsep)
      for p in paths:
          fn = os.path.join(os.path.abspath(p), exe)
          if os.path.isfile(fn):
              return fn
      return exe
  
imports: import os
  import subprocess
  import winreg
  from distutils.errors import DistutilsExecError, DistutilsPlatformError, CompileError, LibError, LinkError
  from distutils.ccompiler import CCompiler, gen_lib_options
  from distutils import log
  from distutils.util import get_platform
  from itertools import count
label_desc: Use image node_id 5 for calling a global function with example usage: _find_exe(exe, paths) and returns: exe, fn