I am trying to set the projection on a raster to match that of a vector point layer. Thus I need to find out what is the projection of a given layer, to use it in the `GDAL.Dataset.SetProjection()` so that I can create the GeoTIFF with the appropriate projection.

How do I do that in QGIS using Python?