def resource(self, *urls, **kwargs):
        def decorator(cls):
            self.add_resource(cls, *urls, **kwargs)
            return cls
        return decorator
Tests that only one root directory is allowed.
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.resource--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/compute-image-packages/legacy/gcimagebundle/gcimagebundlelib/tests/block_disk_test.py/RootFsRawTest.testRootRawDiskVerifiesOneSource