def METHOD_NAME(session, tid, user_session, request, language):
    """
    Transaction to update the node configuration
    :param session: An ORM session
    :param tid: A tenant ID
    :param user_session: The current user session
    :param request: The request data
    :param language: the language in which to localize data
    :return: Return the serialized configuration for the specified tenant
    """
    root_config = ConfigFactory(session, 1)
    config = ConfigFactory(session, tid)
    config.update('node', request)
    if 'languages_enabled' in request and 'default_language' in request:
        db_update_enabled_languages(session,
                                    tid,
                                    request['languages_enabled'],
                                    request['default_language'])
    if language in db_get_languages(session, tid):
        ConfigL10NFactory(session, tid).update('node', request, language)
    if tid == 1:
        log.setloglevel(config.get_val('log_level'))
    return db_admin_serialize_node(session, tid, language)