Returns a function for retrieving a report from the given data context.

Error if a data context is not provided