code: def add_data(df, algorithm, data, elapsed, metric):
      time_col = (data.name, "Time(s)")
      metric_col = (data.name, data.metric)
      try:
          df.insert(len(df.columns), time_col, "-")
          df.insert(len(df.columns), metric_col, "-")
      except:
          pass
  
      df.at[algorithm, time_col] = elapsed
      df.at[algorithm, metric_col] = metric
  
label_desc: Use image node_id 1 for calling a global function with example usage: add_data(df, algorithm, data, elapsed, metric) without return types