code: def wait_for(condition: Callable):
      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 datetime
  import time
  from typing import Callable
label_desc: Use image node_id 1 for calling a global function with example usage: wait_for(condition) without return types