@classmethod
    def from_config(cls, cloud_config, region):
        try:
            backend = cloud_config['BACKEND']
        except __HOLE__:
            raise LookupError("No backend specified!")

        try:
            backend_cls = backends[backend]
        except KeyError:
            raise LookupError(
                "Unknown backend `{}`. Please choose one of {}".format(
                    backend, backends.keys()))
        return backend_cls(cloud_config, region)
dataset/ETHPy150Open onefinestay/gonzo/gonzo/clouds/compute.py/Cloud.from_config