code: def profile(n):
      
      def decorator_with_name(func):
          def func_wrapper(*args, **kwargs):
              with profile_kv(n):
                  return func(*args, **kwargs)
          return func_wrapper
      return decorator_with_name
docs: Usage:
      @profile("my_func")
      def my_func(): code