code: def create_pyx_pipeline(
      context, options, result, py=False, exclude_classes=()
  ):
      if py:
          mode = "py"
      else:
          mode = "pyx"
      test_support = []
      if options.evaluate_tree_assertions:
          from ..TestUtils import TreeAssertVisitor
  
          test_support.append(TreeAssertVisitor())
  
      if options.gdb_debug:
          from ..Debugger import DebugWriter  # requires Py2.5+
          from .ParseTreeTransforms import DebugTransform
  
          context.gdb_debug_outputwriter = (
              DebugWriter.CythonDebugWriter(options.output_dir)
          )
          debug_transform = [DebugTransform(context, options, result)]
      else:
          debug_transform = []
  
      return list(
          itertools.chain(
              [parse_stage_factory(context)],
              create_pipeline(
                  context, mode, exclude_classes=exclude_classes
              ),
              test_support,
              [
                  inject_pxd_code_stage_factory(context),
                  inject_utility_code_stage_factory(context),
                  abort_on_errors,
              ],
              debug_transform,
              [generate_pyx_code_stage_factory(options, result)],
          )
      )
  
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 12 for calling a global function with example usage: create_pyx_pipeline(context, options, result, py, exclude_classes) and returns: list