code: def create_result_messages(benchmark_results, alpha):
      sorted_benchmarks = sorted(
          list(benchmark_results.keys()),
          key=attrgetter("group", "name"),
      )
  
      template = (
          "\t{benchmark:55}{mean_delta:25}{confidence_interval:40}"
      )
  
      confidence = (1.0 - alpha) * 100
      results = [
          template.format(
              benchmark="Benchmark test (group::name)",
              mean_delta="Mean delta in second",
              confidence_interval=f"{confidence}% confidence interval of mean delta",
          )
      ]
      for benchmark in sorted_benchmarks:
          ttest_result = benchmark_results[benchmark]
          results.append(
              template.format(
                  benchmark=f"{benchmark.group}::{benchmark.name}",
                  mean_delta=f"{ttest_result.mean_delta}",
                  confidence_interval=f"({ttest_result.lower_bound}, "
                  f"{ttest_result.upper_bound})",
              )
          )
  
      return "\n".join(results)
  
imports: import argparse
  import collections
  import logging
  import json
  import os
  from operator import attrgetter
  import numpy
  from scipy.stats import t
label_desc: Use image node_id 3 for calling a global function with example usage: create_result_messages(benchmark_results, alpha) and returns: str