getDataProviderFromDocumentSource

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.