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

        if isinstance(result, AttributeInfo) or 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/operator `and` -> `or`