code: def ElemwiseOpTime(N, script=False, loops=1000):
      x = T.vector("x")
      np.random.seed(1235)
      v = np.random.random(N).astype(theano.config.floatX)
      f = theano.function([x], 2 * x + x * x)
      f1 = theano.function([x], T.tanh(x))
      if not script:
          if theano.config.openmp:
              print("With openmp:")
          print("Fast op ", end=" ")
      ceapTime = evalTime(f, v, script=script, loops=loops)
      if not script:
          print("Slow op ", end=" ")
      costlyTime = evalTime(f1, v, script=script, loops=loops)
      return (ceapTime, costlyTime)
  
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 2 for calling a global function with example usage: ElemwiseOpTime(N, script, loops) and returns: ceapTime,  costlyTime