@classmethod
    def of(cls, value):
        if isinstance(value, ConfigSource):
            return value
        elif isinstance(value, dict):
            return ConfigSource(value)
        else:
            raise TypeError(u'source value must be a dict')
Given either a dictionary or a `ConfigSource` object, return
dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/ConfigSource.of