@classmethod
def from_dict(cls, cfg, pwd=None, configure=True):
    """ Construct :class:`.Configuration` from dict ``d``.

        :param d:
            mapping object to use for config
        """
    c = cls(cfg, pwd=pwd)
    if configure:
        c.configure()
    return c
