fetchStatistics method
Fetches available statistics for each attribute defined in this layer. Statistics are stored as a dictionary of key-value pairs, with each key being the attribute's name, and the associated value being a set of relevant statistics.
There will be an error if fetching statistics is unsuccessful.
Return Value: The statistics for each attribute defined in this layer.