code: def evalTime(f, v, script=False, loops=1000):
      min = 1e10
      for i in xrange(0, loops):
          t0 = time.time()
          f(v)
          dt = time.time() - t0
          min = dt if dt < min else min
      if not script:
          print(" run time in %d loops was %2.9f sec" % (loops, min))
      return min
  
file_path: Theano/theano/misc/elemwise_time_test.py
imports: from __future__ import absolute_import, print_function, division
  from optparse import OptionParser
  import sys
  import time
  import numpy
  import theano
  import theano.tensor
  from six.moves import xrange
label_desc: Use image node_id 1 for calling a global function with example usage: evalTime(f, v, script, loops) and returns: min