docs: def read_summary_data(fname, component):
          """ Read summary data suitable to encode as a json packet.
  
          :param fname: The fast5 file to pull the summary data from.
          :param component: The component name to pull summary data for.
  
          :returns: A dictionary containing the summary data.
          """
          summary = {}
          with Fast5File(fname, mode='r') as fh:
              summary['tracking_id'] = fh.get_tracking_id()
              summary['channel_id'] = fh.get_channel_info()
              read_info = fh.status.read_info
              read_summary = []
              for read in read_info:
                  read_summary.append({'read_number': read.read_number,
                                       'read_id': read.read_id,
                                       'start_time': read.start_time,
                                       'duration': read.duration,
                                       'start_mux': read.start_mux})
              summary['reads'] = read_summary
              analyses_list = fh.list_analyses(component)
              _, group_names = zip(*analyses_list)
              group_names = sorted(group_names)
              group = group_names[-1]
              summary['software'] = fh.get_analysis_attributes(group)
              summary['software']['component'] = group[:-4]
  
              summary['data'] = fh.get_summary_data(group)
              summary['filename'] = os.path.basename(fname)
          return summary