/Engine/Source/Editor/Kismet/Public/BlueprintEditor.h
Given a function node, move all nodes from the function out of the function graph, create an event with the same function name, and connect nodes to that event.
void ConvertFunctionToEvent ( [UK2Node_FunctionEntry](API\Editor\BlueprintGraph\UK2Node_FunctionEntry) * SelectedCallFunctionNode )