Returns a function for getting a generator that fetches reports from the given data context.
the current data context
a function for getting a generator that fetches reports
Error if a data context is not provided
Returns a function for getting a generator that fetches reports from the given data context.