code: def funcattrs(**kwds):
      def decorate(func):
          func.__dict__.update(kwds)
          return func
  
      return decorate
  
imports: import unittest
  from types import MethodType
label_desc: Use image node_id 1 for calling a global function with example usage: funcattrs() and returns: decorate, func