def _get_node_type(node, potential_types):
for potential_type in potential_types:<EOL><INDENT>if isinstance(node, potential_type):<EOL><INDENT>return potential_type<EOL><DEDENT><DEDENT>return None<EOL>
Return the type of the node if it exists in potential_types.

Args:
    node (astroid.node): node to get the type of.
    potential_types (tuple): potential types of the node.

Returns:
    type: type of the node or None.