code: def dupstack(newtask):
      '''
      Duplicate the current provenance stack onto another task
      '''
      stack = s_task.varget('provstack')
      s_task.varset('provstack', stack.copy(), newtaskf dupstack(newtask):
      '''
      Duplicate the current provenance stack onto another task
      '''
      stack = s_task.varget('provstack')
      s_task.varset('provstack', stack.copy(), newtask)
docs: Duplicate the current provenance stack onto another task