class_docstr: A toolbox for evolution that contains the evolutionary operators. At
  first the toolbox contains a :meth:`~deap.toolbox.clone` method that
  duplicates any element it is passed as argument, this method defaults to
  the :func:`copy.deepcopy` function. and a :meth:`~deap.toolbox.map`
  method that applies the function given as first argument to every items
  of the iterables given as next arguments, this method defaults to the
  :func:`map` function. You may populate the toolbox with any other
  function by using the :meth:`~deap.base.Toolbox.register` method.
  
  Concrete usages of the toolbox are shown for initialization in the
  :ref:`creating-types` tutorial and for tools container in the
  :ref:`next-step` tutorial.
docstr: Decorate *alias* with the specified *decorators*, *alias*
  has to be a registered function in the current toolbox.
  
  :param alias: The name of the operator to decorate.
  :param decorator: One or more function decorator. If multiple
                    decorators are provided they will be applied in
                    order, with the last decorator decorating all the
                    others.
  
  .. note::
      Decorate a function using the toolbox makes it unpicklable, and
      will produce an error on pickling. Although this limitation is not
      relevant in most cases, it may have an impact on distributed
      environments like multiprocessing.
      A function can still be decorated manually before it is added to
      the toolbox (using the @ notation) in order to be picklable.
docstr_tok: ["Decorate","*","alias","*","with","the","specified","*","decorators","*",",","*","alias","*","has","to","be","a","registered","function","in","the","current","toolbox",".",":","param","alias",":","The","name","of","the","operator","to","decorate",".",":","param","decorator",":","One","or","more","function","decorator",".","If","multiple","decorators","are","provided","they","will","be","applied","in","order",",","with","the","last","decorator","decorating","all","the","others",".","..","note",":",":","Decorate","a","function","using","the","toolbox","makes","it","unpicklable",",","and","will","produce","an","error","on","pickling",".","Although","this","limitation","is","not","relevant","in","most","cases",",","it","may","have","an","impact","on","distributed","environments","like","multiprocessing",".","A","function","can","still","be","decorated","manually","before","it","is","added","to","the","toolbox","(","using","the","@","notation",")","in","order","to","be","picklable","."]
code: def decorate(self, alias, *decorators):
      """Decorate *alias* with the specified *decorators*, *alias*
      has to be a registered function in the current toolbox.
  
      :param alias: The name of the operator to decorate.
      :param decorator: One or more function decorator. If multiple
                        decorators are provided they will be applied in
                        order, with the last decorator decorating all the
                        others.
  
      .. note::
          Decorate a function using the toolbox makes it unpicklable, and
          will produce an error on pickling. Although this limitation is not
          relevant in most cases, it may have an impact on distributed
          environments like multiprocessing.
          A function can still be decorated manually before it is added to
          the toolbox (using the @ notation) in order to be picklable.
      """
      pfunc = getattr(self, alias)
      function, args, kargs = pfunc.func, pfunc.args, pfunc.keywords
      for decorator in decorators:
          function = decorator(function)
      self.register(alias, function, *args, **kargs)
  
imports: import sys
  from copy import deepcopy
  from functools import partial
  from operator import mul, truediv
label_desc: Use image node_id 4 for calling the Toolbox obj's underlying member method code with example usage: obj.decorate(alias) without return types