code: def _assoc_list_to_map(lst):
      """
      Convert an association list to a dictionary.
      """
      d = {}
      for run_id, metric in lst:
          d[run_id] = d[run_id] + [metric] if run_id in d else [metric]
      return d
  
imports: import concurrent.futures
  from threading import RLock
  from mlflow.entities import Metric
  from mlflow.tracking.client import MlflowClient
label_desc: Use image node_id 1 for calling a global function with example usage: _assoc_list_to_map(lst) and returns: d