code: func RegisterPriorityFunction(name string, function priorities.PriorityFunction, weight int) string {
  	return RegisterPriorityConfigFactory(name, PriorityConfigFactory{
  		Function: func(PluginFactoryArgs) priorities.PriorityFunction {
  			return function
  		},
  		Weight: weight,
  	})
  }
docs: // RegisterPriorityFunction registers a priority function with the algorithm registry. Returns the name,
  // with which the function was registered.
  // DEPRECATED
  // Use Map-Reduce pattern for priority functions.