def _Execute(statements, context, callback):

  for i, statement in enumerate(statements):
    if isinstance(statement, basestring):
      callback(statement)
    else:
      # In the case of a substitution, args is a pair (name, formatters).
      # In the case of a section, it's a _Section instance.
      try:
        func, args = statement
        func(args, context, callback)
      except UndefinedVariable, e:
        # Show context for statements
        start = max(0, i-3)
        end = i+3
        e.near = statements[start:end]
        raise
Test that auth mods have:
dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/_Execute--crossover with--dataset/ETHPy150Open saltstack/salt/tests/integration/loader/globals.py/LoaderGlobalsTest.test_auth