def _object_value_for_elem(self, elem):
        try:
            return self._object_lookup[elem]
        except __HOLE__:
            raise LookupError(
                '"%s" is not among the defined enum values' % elem)
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/sql/sqltypes.py/Enum._object_value_for_elem