code: def timed(f):
      """
      Function to calculate the time of execution
  
      :param f: Function name without ()
      :type f: function name
  
      :return: Time of execution
      :rtype: float
  
      """
      start = time.time()
      f()
      elapsed = time.time() - start
      return elapsed
  
file_path: CaseRecommender/caserec/utils/extra_functions.py
imports: import sys
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: timed(f) and returns: elapsed