docs: def max_event_offset(event_list):
      """Find the offset (end-time) of last event
  
      Parameters
      ----------
      event_list : list or dcase_util.containers.MetaDataContainer
          A list containing event dicts
  
      Returns
      -------
      float > 0
          maximum offset
  
      """
  
      if isinstance(event_list, dcase_util.containers.MetaDataContainer):
          return event_list.max_offset
  
      else:
          max_offset = 0
          for event in event_list:
              if 'event_offset' in event:
                  if event['event_offset'] > max_offset:
                      max_offset = event['event_offset']
  
              elif 'offset' in event:
                  if event['offset'] > max_offset:
                      max_offset = event['offset']
  
          return max_offset