def retrieve_element_or_default(self, location, default=None):
loc_descriptor = self._get_location_descriptor(location)<EOL>node = None<EOL>try:<EOL><INDENT>node = self._get_node(loc_descriptor)<EOL><DEDENT>except Exception as e:<EOL><INDENT>return default<EOL><DEDENT>return node.get_element()<EOL>
Args:
    location:
    default: 

Returns: