def METHOD_NAME(session):
    """
    This function is used to add an extra header for the User-Agent in the Botocore session,
    as described in the pull request: https://github.com/boto/botocore/pull/2682
    Parameters
    ----------
    session : botocore.session.Session
        The Botocore session to which the user-agent function will be registered.
    Raises
    ------
    Exception
        If there is an issue while adding the extra header for the User-Agent.
    """
    try:
        session.register(TARGET_SDK_EVENT, _create_feature_function(DEFAULT_FEATURE))
    except Exception:
        logger.debug("Can't add extra header User-Agent")