def _set_sql_mode(sql_mode, dbapi_con, connection_rec):
    cursor = dbapi_con.cursor()
    cursor.execute("SET SESSION sql_mode = %s", [sql_mode])
Methods using the @permalink decorator can have attached attributes
dataset/ETHPy150Open openstack/taskflow/taskflow/persistence/backends/impl_sqlalchemy.py/_set_sql_mode--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/model_permalink/tests.py/PermalinkTests.test_wrapped_attribute