@classmethod
def load_from_conf_options(cls, conf, group, **kwargs):
    """Create a session object from an oslo_config object.

        The options must have been previously registered with
        register_conf_options.

        :param oslo_config.Cfg conf: config object to register with.
        :param string group: The ini group to register options in.
        :param dict kwargs: Additional parameters to pass to session
                            construction.
        :returns: A new session object.
        :rtype: :py:class:`.Session`
        """
    c = conf[group]
    kwargs['insecure'] = c.insecure
    kwargs['cacert'] = c.cafile
    if c.certfile and c.keyfile:
        kwargs['cert'] = c.certfile, c.keyfile
    kwargs['timeout'] = c.timeout
    return cls._make(**kwargs)
