code: def render_plots(
      config: Dict[str, Any],
      event_log_dirs: Dict[str, Path],
      save_figs: bool = False,
  ):
      # Timelines plot
      plt.figure(
          config["timeline_plot_name"],
          figsize=config["timeline_plot_figsize"],
      )
      plot_timelines(
          config["timeline_plot_spec"],
          event_log_dirs,
          config["timeline_plot_subplot_shape"],
      )
      if save_figs:
          plt.savefig(config["timeline_plot_name"])
  
      # KPIs plot
      plt.figure(
          config["kpi_plot_name"], figsize=config["kpi_plot_figsize"]
      )
      plot_kpis(
          config["kpi_plot_spec"],
          event_log_dirs,
          config["kpi_plot_subplot_shape"],
      )
      if save_figs:
          plt.savefig(config["kpi_plot_name"])
  
file_path: maze/evaluation/rollout_evaluation_plots.py
imports: import argparse
  from pathlib import Path
  from typing import Dict, Tuple, List, Any
  import matplotlib.pyplot
  import pandas
  import seaborn
  import yaml
  from maze.core.rendering.events_stats_renderer import EventStatsRenderer
label_desc: Use image node_id 6 for calling a global function with example usage: render_plots(config, event_log_dirs, save_figs) without return types