def node_contained_in_layer_area_validation(self):
<EOL>if self.layer and isinstance(self.layer.area, Polygon) and not self.layer.area.contains(self.geometry):<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>
if layer defines an area, ensure node coordinates are contained in the area