code: def main(_):
      if FLAGS.seqio_summaries:
          subdirs = tf.io.gfile.listdir(FLAGS.summary_dir)
          summary_dirs = [
              os.path.join(FLAGS.summary_dir, d) for d in subdirs
          ]
      else:
          summary_dirs = [FLAGS.summary_dir]
  
      scores = None
      for d in summary_dirs:
          events = eval_utils.parse_events_files(
              d, FLAGS.seqio_summaries
          )
          if FLAGS.perplexity_eval:
              task_metrics = events
          else:
              task_metrics = eval_utils.get_eval_metric_values(
                  events,
                  task_name=os.path.basename(d)
                  if FLAGS.seqio_summaries
                  else None,
              )
          if scores:
              scores.update(task_metrics)
          else:
              scores = task_metrics
  
      if not scores:
          logging.info(
              "No evaluation events found in %s", FLAGS.summary_dir
          )
          return
      df = eval_utils.scores_to_df(scores)
      df = eval_utils.compute_avg_glue(df)
      df = eval_utils.sort_columns(df)
      eval_utils.log_csv(df, output_file=FLAGS.out_file)
  
imports: import os
  from absl import app
  from absl import flags
  from absl import logging
  from t5.evaluation import eval_utils
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: main(_) without return types