code: def format_xml_property(
      metric_type: str, summary_method: str, metric_value: float
  ) -> Tuple[str, float]:
      """
      Formats metric summary into XML name-value tuple in the form of
      (metric_type[summary_method], metric_value)
      ex: (cpu_util[avg], 88.23)
      """
      return f"{metric_type}[{summary_method}]", metric_value
  
file_path: determined/e2e_tests/tests/experiment/record_profiling.py
imports: import json
  from statistics import mean
  from typing import Callable, Dict, List, Optional, Tuple
  from urllib.parse import urlencode
  from determined.common import api
  from determined.profiler import SysMetricName
  from tests import config
label_desc: Use image node_id 2 for calling a global function with example usage: format_xml_property(metric_type, summary_method, metric_value) and returns: metric_type, str, summary_method, str,  metric_value