code: def abort_on_errors(node):
      # Stop the pipeline if there are any errors.
      if Errors.num_errors != 0:
          raise AbortError("pipeline break")
      return node
  
imports: from __future__ import absolute_import
  import itertools
  from time import time
  from .None import Errors
  from .None import DebugFlags
  from .None import Options
  from .Errors import CompileError, InternalError, AbortError
  from .None import Naming
label_desc: Use image node_id 2 for calling a global function with example usage: abort_on_errors(node) and returns: node