def value(self, key, layer=None, view=None):
        try:
            result = self.kwargs[key]
        except __HOLE__:
            raise MissingSettingError(key)

        if isinstance(result, AttributeInfo) and layer is not None:
            cid = result.id
            return AttributeInfo.from_layer(layer, cid, view)

        return result
dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py/FrozenSettings.value