code: def iterchildren(node, attr_name):
      # returns an iterable of all child nodes of that name
      child = getattr(node, attr_name)
      if child is not None:
          if type(child) is list:
              return child
          else:
              return [child]
      else:
          return ()
  
imports: from __future__ import absolute_import
  import re
  import operator
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: iterchildren(node, attr_name) and returns: , child, list