def get_merge_node_type(merge_successor_id, bpmn_diagram):
result = re.match(regex_pa_trailing_number, merge_successor_id)<EOL>if result:<EOL><INDENT>trailing_number = result.group(<NUM_LIT:2>)<EOL>prev_prev_number = int(trailing_number) - <NUM_LIT:2><EOL>if prev_prev_number < <NUM_LIT:0>:<EOL><INDENT>raise bpmn_exception.BpmnPythonError("<STR_LIT>" + merge_successor_id)<EOL><DEDENT>prefix = result.group(<NUM_LIT:1>)<EOL>split_node_id = prefix + str(prev_prev_number) + "<STR_LIT>"<EOL>if bool(bpmn_diagram.diagram_graph.has_node(split_node_id)):<EOL><INDENT>node_type = bpmn_diagram.diagram_graph.node[split_node_id][consts.Consts.type]<EOL>if bool(node_type):<EOL><INDENT>return node_type<EOL><DEDENT><DEDENT>return consts.Consts.inclusive_gateway<EOL><DEDENT>
:param merge_successor_id:
:param bpmn_diagram:
:return: