code: def _descendants(node):
      """
      Returns the list of all nodes which are descended from the given
      tree node in some way.
      """
      try:
          treepos = node.treepositions()
      except AttributeError:
          return []
      return [node[x] for x in treepos[1:]]
  
imports: import functools
  import re
  import nltk.tree
label_desc: Use image node_id 3 for calling a global function with example usage: _descendants(node) and returns: unknown, list