code: def tictoc(text=""):
      print("--- Start clock ---")
      t1 = time()
      yield
      dt = time() - t1
      print(
          "--- Stop clock {0}: {1} seconds elapsed ---".format(text, dt)
      )
  
file_path: autograd/tests/profiling.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from builtins import range
  from autograd import grad
  import autograd.numpy
  import autograd.numpy.random
  from time import time
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling a global function with example usage: tictoc(text) without return types