def __init__(self, resource_configuration, *a, **kw):
        if not resource_configuration in 'provider':
            e_msg = 'Invalid resource configuration.'
            detail = 'A resource configuration must at least contain the key "provider". The adapter was provided: %r.' % resource_configuration
            raise exceptions.ResourceError(e_msg, detail)

        # copy the resource configuration since we're going to edit it:
        resource_configuration = copy.copy(resource_configuration)
        provider = resource_configuration.pop('provider')

        super(DictResourceDependencyAdapter, self).__init__(provider, resource_configuration, *a, **kw)
dataset/ETHPy150Open foundit/Piped/piped/dependencies.py/DictResourceDependencyAdapter.__init__/swapped operands of `in`