def visit_column(self, clause):
        if 'parentmapper' in clause._annotations:
            parentmapper = clause._annotations['parentmapper']
            if self.target_cls and not issubclass(
                    self.target_cls, parentmapper.class_):
                util.warn(
                    "Can't do in-Python evaluation of criteria against "
                    "alternate class %s; "
                    "expiration of objects will not be accurate "
                    "and/or may fail.  synchronize_session should be set to "
                    "False or 'fetch'. "
                    "This warning will be an exception "
                    "in 1.0." % parentmapper.class_
                )
            key = parentmapper._columntoproperty[clause].key
        else:
            key = clause.key

        get_corresponding_attr = operator.attrgetter(key)
        return lambda obj: get_corresponding_attr(obj)
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/evaluator.py/EvaluatorCompiler.visit_column/original