code: def removable(self, node):
      """
      node is removable only if all of its children are as well.
      """
      throw_away = []
      for child in self.children(node):
          throw_away.append(self.visit(child))
  
      if self.mode == "exclusive":
          return all(throw_away)
      elif self.mode == "inclusive":
          return any(throw_away)
      else:
          raise TypeError(
              "mode must be one of 'exclusive' or 'inclusive'"
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import _ast
  from ...asttools import Visitor, visit_children
label_desc: Use image node_id 1 for calling a global function with example usage: removable(node) and returns: all, any