code: def wrap_node(self, node, options):
          '''\
          celery registers tasks by decorating them, and so do we, so the user
          can pass a celery task and we'll wrap our code with theirs in a nice
          package celery can execute.
          '''
          if 'celery_task' in options:
              return options['celery_task'](node)
  
          return self.celery_task(nodef wrap_node(self, node, options):
          '''\
          celery registers tasks by decorating them, and so do we, so the user
          can pass a celery task and we'll wrap our code with theirs in a nice
          package celery can execute.
          '''
          if 'celery_task' in options:
              return options['celery_task'](node)
  
          return self.celery_task(node)
docs: \
          celery registers tasks by decorating them, and so do we, so the user
          can pass a celery task and we'll wrap our code with theirs in a nice
          package celery can execute.