code: def reset ():
      
      global __had_unspecified_value, __had_value, __declared_subfeature
      global __init_loc
      global __all_signatures, __debug_configuration, __show_configuration
  
      # Stores toolsets without specified initialization values.
      __had_unspecified_value = {}
  
      # Stores toolsets with specified initialization values.
      __had_value = {}
  
      # Stores toolsets with declared subfeatures.
      __declared_subfeature = {}
  
      # Stores all signatures of the toolsets.
      __all_signatures = {}
  
      # Stores the initialization locations of each toolset
      __init_loc = {}
  
      __debug_configuration = '--debug-configuration' in bjam.variable('ARGV')
      __show_configuration = '--show-configuration' in bjam.variable('ARGV')
  
      global __executable_path_variable
      OS = bjam.call("peek", [], "OS")[0]
      if OS == "NT":
          # On Windows the case and capitalization of PATH is not always predictable, so
          # let's find out what variable name was really set.
          for n in os.environ:
              if n.lower() == "path":
                  __executable_path_variable = n
                  break
      else:
          __executable_path_variable = "PATH"
  
      m = {"NT": __executable_path_variable,
           "CYGWIN": "PATH",
           "MACOSX": "DYLD_LIBRARY_PATH",
           "AIX": "LIBPATH",
           "HAIKU": "LIBRARY_PATH"}
      global __shared_library_path_variable
      __shared_library_path_variable = m.get(OS, "LD_LIBRARY_PATH")
docs: Clear the module state. This is mainly for testing purposes.
          Note that this must be called _after_ resetting the module 'feature'.