code: def run(expdir):
      start_time = time.time()
      expdir_monitor = ExpdirMonitor(expdir)
      valid_performance = expdir_monitor.run(pure=True, restore=False)
      end_time = time.time()
      print("running time: %s" % (end_time - start_time))
      print("valid performance: %s" % valid_performance)
  
imports: import os
  from .expdir_monitor.expdir_monitor import ExpdirMonitor
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: run(expdir) without return types