code: def data_objet_class(data_mode='value', time_mode='framewise'):
      
      classes_table = {('value', 'global'): GlobalValueObject,
                       ('value', 'event'): EventValueObject,
                       ('value', 'segment'): SegmentValueObject,
                       ('value', 'framewise'): FrameValueObject,
                       ('label', 'global'): GlobalLabelObject,
                       ('label', 'event'): EventLabelObject,
                       ('label', 'segment'): SegmentLabelObject,
                       ('label', 'framewise'): FrameLabelObject}
  
      try:
          return classes_table[(data_mode, time_mode)]
      except KeyError as e:
          raise ValueError('Wrong arguments')
docs: Factory function for Analyzer result