class_docstr: Builds graphs and other summary information from eventlogs.
docstr: Gather data from all of the logs and add to the data_collector list.
  
  Returns:
    Tuple of arrays indexed by log file, e.g. data_collector[0] is all of the
    values found in the event log for the given event and walltimes[0] is the
    total time in minutes it took to get to the end_step in that event log.
docstr_tok: ["Gather","data","from","all","of","the","logs","and","add","to","the","data_collector","list",".","Returns",":","Tuple","of","arrays","indexed","by","log","file",",","e.g",".","data_collector","[","0","]","is","all","of","the","values","found","in","the","event","log","for","the","given","event","and","walltimes","[","0","]","is","the","total","time","in","minutes","it","took","to","get","to","the","end_step","in","that","event","log","."]
code: def _gather_data(
      self,
  ) -> Tuple[List[Dict[int, np.generic]], List[float]]:
      """Gather data from all of the logs and add to the data_collector list.
  
      Returns:
        Tuple of arrays indexed by log file, e.g. data_collector[0] is all of the
        values found in the event log for the given event and walltimes[0] is the
        total time in minutes it took to get to the end_step in that event log.
      """
      data_collector, walltimes = [], []
      for eventlog_dir in self.eventlog_dirs:
          event_file = utils.find_event_log(eventlog_dir)
          logging.info("Processing event file: %s", event_file)
          data, total_time = utils.extract_event_log_values(
              event_file, self.event_tag, self.end_step
          )
          walltimes.append(total_time)
          data_collector.append(data)
      return data_collector, walltimes
  
imports: import csv
  import enum
  import os
  from typing import Dict, List, Optional, Sequence, Tuple, Union
  from absl import app
  from absl import flags
  from absl import logging
  import matplotlib.pyplot
  import numpy
  import pandas
  import seaborn
  from tf_agents.benchmark import utils
label_desc: Use image node_id 2 for calling the StatsBuilder obj's underlying member method code with example usage: obj._gather_data() and returns: data_collector,  walltimes