code: def profile(tag: str = None):
      def decorator(function):
          @wraps(function)
          def wrapper(*args, **kwargs):
              if profiling_enabled() is True:
                  with Context(
                      tag
                      or f"{function.__name__}|{function.__module__}"
                  ):
                      result = function(*args, **kwargs)
              else:
                  result = function(*args, **kwargs)
              return result
  
          return wrapper
  
      return decorator
  
imports: import time
  from datetime import datetime, timezone
  from functools import wraps
  import mindsdb.utilities.hooks
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
label_desc: Use image node_id 11 for calling a global function with example usage: profile(tag) and returns: decorator, wrapper, result