def METHOD_NAME(user, instance, model_name=None):
    if settings.USE_OBJECT_CACHES:
        return _get_adjuncts(instance).permissions(user, model_name)
    else:
        return _permissions_from_db(user, instance, model_name)