code: def elapsed(func):
      
  
      @functools.wraps(func)
      def wrapper(*args, **kw):
          start = time.time()
          print('Running `%s()` ...' % func.__name__)
          res = func(*args, **kw)
          end = time.time()
          print('Function `%s()` running elapsed %.2f s' %
                (func.__name__, end - start))
          return res
  
      return wrapper
docs: A decorator for calculating time elapsed when execute function