def ConfigSync(shared=0):
  def wrap(fn):
    def sync_function(*args, **kwargs):
      with args[0].GetConfigManager(shared):
        return fn(*args, **kwargs)
    return sync_function
  return wrap
Return a 'result processor' for a given type as present in
dataset/ETHPy150Open ganeti/ganeti/lib/config/utils.py/ConfigSync--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/engine/default.py/DefaultExecutionContext.get_result_processor