code: def read_values(base, key):
      """Return dict of registry keys and values.
  
      All names are converted to lowercase.
      """
      try:
          handle = RegOpenKeyEx(base, key)
      except RegError:
          return None
      d = {}
      i = 0
      while True:
          try:
              name, value, type = RegEnumValue(handle, i)
          except RegError:
              break
          name = name.lower()
          d[convert_mbcs(name)] = convert_mbcs(value)
          i += 1
      return d
  
imports: import sys
  import os
  import warnings
  from .errors import DistutilsExecError, DistutilsPlatformError, CompileError, LibError, LinkError
  from .ccompiler import CCompiler, gen_lib_options
  from ._log import log
label_desc: Use image node_id 2 for calling a global function with example usage: read_values(base, key) and returns: d, None