code: def export_and_print(
      dataset_list: List[str],
      metric_diffs: List[MetricsDiff],
      resource_usage_diffs: List[List[ResourceUsageDiff]],
  ) -> None:
      """Export to CSV and print a diff of performance and resource usage metrics of two experiments.
  
      :param dataset_list: list of datasets for which to print the diffs.
      :param metric_diffs: Diffs for the performance metrics by dataset.
      :param resource_usage_diffs: Diffs for the resource usage metrics per dataset per LudwigProfiler tag.
      """
      for dataset_name, experiment_metric_diff in zip(
          dataset_list, metric_diffs
      ):
          output_path = os.path.join(
              "summarize_output", "performance_metrics", dataset_name
          )
          os.makedirs(output_path, exist_ok=True)
  
          logger.info(
              "Model performance metrics for *{}* vs. *{}* on dataset *{}*".format(
                  experiment_metric_diff.base_experiment_name,
                  experiment_metric_diff.experimental_experiment_name,
                  experiment_metric_diff.dataset_name,
              )
          )
          logger.info(experiment_metric_diff.to_string())
          filename = (
              "-".join(
                  [
                      experiment_metric_diff.base_experiment_name,
                      experiment_metric_diff.experimental_experiment_name,
                  ]
              )
              + ".csv"
          )
          export_metrics_diff_to_csv(
              experiment_metric_diff,
              os.path.join(output_path, filename),
          )
  
      for dataset_name, experiment_resource_diff in zip(
          dataset_list, resource_usage_diffs
      ):
          output_path = os.path.join(
              "summarize_output", "resource_usage_metrics", dataset_name
          )
          os.makedirs(output_path, exist_ok=True)
          for tag_diff in experiment_resource_diff:
              logger.info(
                  "Resource usage for *{}* vs. *{}* on *{}* of dataset *{}*".format(
                      tag_diff.base_experiment_name,
                      tag_diff.experimental_experiment_name,
                      tag_diff.code_block_tag,
                      dataset_name,
                  )
              )
              logger.info(tag_diff.to_string())
              filename = (
                  "-".join(
                      [
                          tag_diff.code_block_tag,
                          tag_diff.base_experiment_name,
                          tag_diff.experimental_experiment_name,
                      ]
                  )
                  + ".csv"
              )
              export_resource_usage_diff_to_csv(
                  tag_diff, os.path.join(output_path, filename)
              )
  
file_path: ludwig/ludwig/benchmarking/summarize.py
imports: import argparse
  import logging
  import os
  import shutil
  from typing import List, Tuple
  from ludwig.benchmarking.summary_dataclasses import build_metrics_diff, build_resource_usage_diff, export_metrics_diff_to_csv, export_resource_usage_diff_to_csv, MetricsDiff, ResourceUsageDiff
  from ludwig.benchmarking.utils import download_artifacts
label_desc: Use image node_id 2 for calling a global function with example usage: export_and_print(dataset_list, metric_diffs, resource_usage_diffs) without return types