code: def find_python_dll():
      # We can't do much here:
      # - find it in the virtualenv (sys.prefix)
      # - find it in python main dir (sys.base_prefix, if in a virtualenv)
      # - sys.real_prefix is main dir for virtualenvs in Python 2.7
      # - in system32,
      # - ortherwise (Sxs), I don't know how to get it.
      stems = [sys.prefix]
      if hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix:
          stems.append(sys.base_prefix)
      elif (
          hasattr(sys, "real_prefix") and sys.real_prefix != sys.prefix
      ):
          stems.append(sys.real_prefix)
  
      sub_dirs = ["", "lib", "bin"]
      # generate possible combinations of directory trees and sub-directories
      lib_dirs = []
      for stem in stems:
          for folder in sub_dirs:
              lib_dirs.append(os.path.join(stem, folder))
  
      # add system directory as well
      if "SYSTEMROOT" in os.environ:
          lib_dirs.append(
              os.path.join(os.environ["SYSTEMROOT"], "System32")
          )
  
      # search in the file system for possible candidates
      major_version, minor_version = tuple(sys.version_info[:2])
      patterns = ["python%d%d.dll"]
  
      for pat in patterns:
          dllname = pat % (major_version, minor_version)
          print("Looking for %s" % dllname)
          for folder in lib_dirs:
              dll = os.path.join(folder, dllname)
              if os.path.exists(dll):
                  return dll
  
      raise ValueError("%s not found in %s" % (dllname, lib_dirs))
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import subprocess
  import re
  import numpy.distutils.ccompiler
  import distutils.cygwinccompiler
  from distutils.version import StrictVersion
  from numpy.distutils.ccompiler import gen_preprocess_options, gen_lib_options
  from distutils.unixccompiler import UnixCCompiler
  from distutils.msvccompiler import get_build_version
  from distutils.errors import DistutilsExecError, CompileError, UnknownFileError
  from numpy.distutils.misc_util import msvc_runtime_library, msvc_runtime_version, msvc_runtime_major, get_build_architecture
label_desc: Use image node_id 2 for calling a global function with example usage: find_python_dll() and returns: dll