docstr: Tests combining data from 3 differnet logs into a single result.
docstr_tok: ["Tests","combining","data","from","3","differnet","logs","into","a","single","result","."]
code: def test_align_and_aggregate(self):
      """Tests combining data from 3 differnet logs into a single result."""
      event_log_dirs = [
          "event_log_ant_eval00",
          "event_log_ant_eval01",
          "event_log_ant_eval02",
      ]
      event_log_paths = [
          os.path.join(TEST_DATA, log_dir) for log_dir in event_log_dirs
      ]
      stat_builder = graph_builder.StatsBuilder(
          event_log_paths, "AverageReturn"
      )
      data_collector, _ = stat_builder._gather_data()
      agg_results = stat_builder._align_and_aggregate(data_collector)
      # Mean at step 3M.
      self.assertAlmostEqual(agg_results[-1][-1], 5674.96354, places=4)
      # Median at step 3M.
      self.assertAlmostEqual(agg_results[-1][-2], 5573.90380, places=4)
  
imports: import os
  from absl.testing import absltest
  import graph_builder
label_desc: Use image node_id 1 for calling the GraphBuilderTest obj's underlying member method code with example usage: obj.test_align_and_aggregate() without return types