docstr: Calls :meth:`interact` and returns the :class:`InteractiveFunction`.
  
  Parameters
  ----------
  kwargs
      Keyword arguments to pass to :meth:`interact`
docstr_tok: ["Calls",":","meth",":","`","interact","`","and","returns","the",":","class",":","`","InteractiveFunction","`",".","Parameters","--","--","--","--","--","kwargs","Keyword","arguments","to","pass","to",":","meth",":","`","interact","`"]
code: def decorate(self, **kwargs):
      """
      Calls :meth:`interact` and returns the :class:`InteractiveFunction`.
  
      Parameters
      ----------
      kwargs
          Keyword arguments to pass to :meth:`interact`
      """
  
      def decorator(function):
          if not isinstance(function, InteractiveFunction):
              function = InteractiveFunction(function)
          self.interact(function, **kwargs)
          return function
  
      return decorator
  
imports: import contextlib
  import functools
  import inspect
  import pydoc
  from .None import Parameter
  from .parameterTypes import ActionGroupParameter
  from ..None import functions
label_desc: Use image node_id 6 for calling the Interactor obj's underlying member method code with example usage: obj.decorate() and returns: decorator, function