DataSource Example

Can anyone provide an example on how the DataSource API can be used?
https://developer.apple.com/documentation/tvmljs/datasource?changes=latest_minor


It was added in tvOS 13 but the example in the docs (Binding JSON Data to TVML Documents) wasn't updated to use it.