code: def build_vrt(source_file, destination_file, **kwargs):
      
      with rasterio.open(source_file) as src:
          vrt_doc = boundless_vrt_doc(src, **kwargs).tostring()
  
          with open(destination_file, 'wb') as dst:
              dst.write(vrt_doc)
  
      return destination_file
docs: Make a VRT XML document and write it in file.
  
      Parameters
      ----------
      source_file : str, file object or pathlib.Path object
          Source file.
      destination_file : str
          Destination file.
      kwargs : optional
          Additional arguments passed to rasterio.vrt._boundless_vrt_doc
  
      Returns
      -------
      out : str
          The path to the destination file.