code: def get_build_version():
      """Return the version of MSVC that was used to build Python.
  
      For Python 2.3 and up, the version number is included in
      sys.version.  For earlier versions, assume the compiler is MSVC 6.
      """
      prefix = "MSC v."
      i = sys.version.find(prefix)
      if i == -1:
          return 6
      i = i + len(prefix)
      s, rest = sys.version[i:].split(" ", 1)
      majorVersion = int(s[:-2]) - 6
      if majorVersion >= 13:
          # v13 was skipped and should be v14
          majorVersion += 1
      minorVersion = int(s[2:3]) / 10.0
      # I don't think paths are affected by minor version in version 6
      if majorVersion == 6:
          minorVersion = 0
      if majorVersion >= 6:
          return majorVersion + minorVersion
      # else we don't know what version of the compiler this is
      return None
  
imports: import os
  import subprocess
  import sys
  import re
  import warnings
  from .errors import DistutilsExecError, DistutilsPlatformError, CompileError, LibError, LinkError
  from .ccompiler import CCompiler, gen_lib_options
  from ._log import log
  from .util import get_platform
  import winreg
label_desc: Use image node_id 1 for calling a global function with example usage: get_build_version() and returns: None, int, unknown