code: function reset () {
    // Reset all changes in paths caused by addPath function
    modulePaths.forEach(function (path) {
      removePathHelper(path, require.main.paths)
      var parent = module.parent
      while (parent && parent !== require.main) {
        removePathHelper(path, parent.paths)
        parent = parent.parent
      }
    })
  
    modulePaths = []
    moduleAliases = {}
  }
docs: Reset any changes maded (resets all registered aliases
  and custom module directories)
  The function is undocumented and for testing purposes only