class_docstr: Traverser interface for tasks.
  
  Class for storing the state while performing a preorder-traversal of a
  task.
  
  Parameters
  ----------
  term : task
      The task to be traversed
  
  Attributes
  ----------
  term
      The current element in the traversal
  current
      The head of the current element in the traversal. This is simply `head`
      applied to the attribute `term`.
class_docstr_tok: ["Traverser","interface","for","tasks",".","Class","for","storing","the","state","while","performing","a","preorder-traversal","of","a","task",".","Parameters","--","--","--","--","--","term",":","task","The","task","to","be","traversed","Attributes","--","--","--","--","--","term","The","current","element","in","the","traversal","current","The","head","of","the","current","element","in","the","traversal",".","This","is","simply","`","head","`","applied","to","the","attribute","`","term","`","."]
code: def current(self):
      return head(self.term)
  
imports: from collections import deque
  from flash.core.serve.dag.task import istask, subs
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 5 for calling the Traverser obj's underlying member method code with example usage: obj.current() and returns: head