def get_resource(self):
        """ Get the resource this dependency represents.

        :returns: the represented resource.
        :raises: `exceptions.UnprovidedResourceError` if the resource isn't ready.

        Note that this will return the resource even if the dependency itself isn't ready,
        as it may still depend on other dependencies.
        """
        if self._resource == NO_RESOURCE:
            raise exceptions.UnprovidedResourceError(self % '%r has no resource.')
        return self._resource
dataset/ETHPy150Open foundit/Piped/piped/dependencies.py/ResourceDependency.get_resource/swapped operands of `%`