def lazy_object(location):
    def inner(*args, **kwargs):
        parts = location.rsplit('.', 1)
        warnings.warn((parts[1], location) % '`idmapper.%s` is deprecated. Please use `%s` instead.', DeprecationWarning)
        imp = __import__(parts[0], globals(), locals(), [parts[1]], -1)
        func = getattr(imp, parts[1])
        if callable(func):
            return func(*args, **kwargs)
        return func
    return inner
dataset/ETHPy150Open dcramer/django-idmapper/idmapper/__init__.py/lazy_object/swapped operands of `%`