code: def finished_runs_over_time(runs, show=False):
      budgets = set([r.budget for r in runs])
  
      times = {}
      for b in budgets:
          times[b] = [0]
  
      for r in runs:
          times[r.budget].append(r.time_stamps["finished"])
  
      for b in budgets:
          times[b].sort()
  
      fig, ax = plt.subplots()
  
      for b in budgets:
          ax.plot(
              times[b], np.arange(len(times[b])), label="b = %f" % b
          )
  
      ax.set_xlabel("time [s]")
      ax.set_ylabel("number of finished runs")
      ax.legend()
  
      if show:
          plt.show()
      return (fig, ax)
  
file_path: HpBandSter/hpbandster/visualization.py
imports: import copy
  import numpy
  import scipy.stats
  import matplotlib.pyplot
  from matplotlib.widgets import CheckButtons, Button
label_desc: Use image node_id 3 for calling a global function with example usage: finished_runs_over_time(runs, show) and returns: fig,  ax