code: def timer(subject: str = "time") -> Generator[None, None, None]:
      """print the elapsed time. (only used in debugging)"""
      start = time()
      yield
      elapsed = time() - start
      elapsed_ms = elapsed * 1000
      print(f"{subject} elapsed {elapsed_ms:.1f}ms")
  
label_desc: Use image node_id 1 for calling a global function with example usage: timer(subject) without return types