get Data Provider From Document Source
fun DocumentSource.getDataProviderFromDocumentSource(): ERROR CLASS: Symbol not found for DataProvider
This function returns the data provider from the DocumentSource. If the document source is a file, it creates a data provider from the file. If the document source is not a file, it returns the data provider from the document source.