code: def _profile(_f=None):
      def func_wrapper(func):
          f_name = func.__module__ + "." + func.__name__
          if f_name in _FUNCTION_PROFILE_REGISTRY:
              raise ValueError(
                  "Function {} is already registered for profiling.".format(
                      f_name
                  )
              )
  
          _FUNCTION_PROFILE_REGISTRY[f_name] = []
          return func
  
      if _f is None:
          return func_wrapper
      return func_wrapper(_f)
  
imports: from __future__ import print_function
  import os
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: _profile(_f) and returns: func_wrapper, func, func_wrapper