def assure_container(fnc):
    @wraps(fnc)
    def _wrapped(self, container, *args, **kwargs):
        if not isinstance(container, Container):
            # Must be the name
            container = self.get(container)
        return fnc(self, container, *args, **kwargs)
    return _wrapped
Assures that whether a Container or a name of a container is passed, a
dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/assure_container