I would like to load a virtual raster as a layer into my map. I have tried changing the datasource attribute to 1 (relative), as described here:
https://gis.stackexchange.com/questions/120774/loading-virtual-vector-layer-in-qgis

What do I need to change for the raster? I have tried both QgsRasterLayer and QgsVectorLayer.

```
from osgeo import gdal
import os

vrt_options = gdal.BuildVRTOptions(resampleAlg='nearestNeighbor', addAlpha=False)
gdal.BuildVRT(r'D:\QGIS\ni25.vrt', [r'D:\QGIS\dtk25.tif'], options=vrt_options)

vrt_path = r'D:\QGIS\ni25.vrt'
Layer = QgsRasterLayer(vrt_path, "ni25_vrt", "ogr")
if not Layer.isValid():
    print("Layer failed to load!")

QgsProject.instance().addMapLayer(Layer)
```

The layer is added but nothing shows up in the map and there is a warning saying that the laer data source could not be found. When I drag the vrt into the layers window, it works.