code: def SpiceUDFUNB(f):
      
  
      @functools.wraps(f)
      def wrapping_udfunb(udf, et, xbool):
          result = f(udf, et) # the function takes a udffunc as a argument
          xbool[0] = c_int(result)
  
      return UDFUNB(wrapping_udfunb)
docs: Decorator for wrapping python functions in spice udfunb callback type
      :param f: function to be wrapped
      :type f: builtins.function
      :return: wrapped udfunb function
      :rtype: builtins.function