code: def wait_for(condition):
      for _ in range(750):
          if condition():
              break
          else:
              time.sleep(0.1)
      if not condition():
          raise TimeoutError("wait_for took to long to finish")
  
imports: import os
  import time
  import timeit
  import numpy
  import ipyparallel
label_desc: Use image node_id 1 for calling a global function with example usage: wait_for(condition) without return types