def attrgetter(self, *items):
        if len(items) == 1:
            attr = items[0]

            def g(obj):
                return self.resolve_attr(obj, attr)
        else:
            def g(obj):
                return tuple(self.resolve_attr(obj, attr) for attr in items)
        return g
dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/models/group.py/BaseProcessData.attrgetter/original