@staticmethod<EOL><INDENT>def import_event_based_gateway_to_graph(diagram_graph, process_id, process_attributes, element):<DEDENT>
element_id = element.getAttribute(consts.Consts.id)<EOL>BpmnDiagramGraphImport.import_gateway_to_graph(diagram_graph, process_id, process_attributes, element)<EOL>diagram_graph.node[element_id][consts.Consts.instantiate] = element.getAttribute(consts.Consts.instantiate)if element.hasAttribute(consts.Consts.instantiate) else "<STR_LIT:false>"<EOL>diagram_graph.node[element_id][consts.Consts.event_gateway_type] =element.getAttribute(consts.Consts.event_gateway_type)if element.hasAttribute(consts.Consts.event_gateway_type) else "<STR_LIT>"<EOL>
Adds to graph the new element that represents BPMN event based gateway.
In addition to attributes inherited from Gateway type, event based gateway has additional
attributes - instantiate (boolean type, default value - false) and eventGatewayType
(custom type tEventBasedGatewayType, default value - Exclusive).

:param diagram_graph: NetworkX graph representing a BPMN process diagram,
:param process_id: string object, representing an ID of process element,
:param process_attributes: dictionary that holds attribute values of 'process' element, which is parent of
   imported flow node,
:param element: object representing a BPMN XML 'eventBasedGateway' element.