code: def extract_name_value_pairs(input_string):
      """
      Extracts performance metrics and their values from the performance line.
  
      Args:
          input_string (str): The string containing the performance.
  
      Returns:
          dict: A dictionary containing the detected performance metrics and their values.
      """
      pattern = re.compile(r"(\w+(?:-\w+)?)=(\S+)")
      matches = pattern.findall(input_string)
      result = {name: value for name, value in matches}
      return result
  
imports: import csv
  import re
  import argparse
  from speechbrain.utils.data_utils import get_all_files
label_desc: Use image node_id 2 for calling a global function with example usage: extract_name_value_pairs(input_string) and returns: result