docstr: Get stats based on labels
  
  Returns:
      A dictionary maps label to the aggregated stats obj
docstr_tok: ["Get","stats","based","on","labels","Returns",":","A","dictionary","maps","label","to","the","aggregated","stats","obj"]
code: def get_statistics(
      self, resolution_list: Optional[List[str]] = None
  ) -> Tuple[Dict[Union[str, int], DatetimeStats], DatetimeStats]:
      """
      Get stats based on labels
  
      Returns:
          A dictionary maps label to the aggregated stats obj
      """
      _stats = dict()
      _all_stats = self._all_analyzer.get_statistics(
          resolution_list=resolution_list
      )
      for label, analyzer in self._label_analyzer.items():
          _stats[label] = analyzer.get_statistics(
              resolution_list=resolution_list
          )
      return _stats, _all_stats
  
file_path: contextual-ai/xai/data/explorer/datetime/labelled_datetime_analyzer.py
imports: from typing import Tuple, Dict, Union, Optional, List
  from xai.data.explorer.abstract_labelled_analyzer import AbstractLabelledDataAnalyzer
  from xai.data.explorer.datetime.datetime_analyzer import DatetimeDataAnalyzer
  from xai.data.explorer.datetime.datetime_stats import DatetimeStats
label_desc: Use image node_id 2 for calling the LabelledDatetimeDataAnalyzer obj's underlying member method code with example usage: obj.get_statistics(resolution_list) and returns: _stats,  _all_stats