args: geom, flags - Returns a valid_detail row stating if a geometry is valid or if not a reason and a location.