code: func RegisterPriorityFunction2(
  	name string,
  	mapFunction priorities.PriorityMapFunction,
  	reduceFunction priorities.PriorityReduceFunction,
  	weight int) string {
  	return RegisterPriorityConfigFactory(name, PriorityConfigFactory{
  		MapReduceFunction: func(PluginFactoryArgs) (priorities.PriorityMapFunction, priorities.PriorityReduceFunction) {
  			return mapFunction, reduceFunction
  		},
  		Weight: weight,
  	})
  }
docs: // RegisterPriorityFunction2 registers a priority function with the algorithm registry. Returns the name,
  // with which the function was registered.
  // FIXME: Rename to PriorityFunctionFactory.