import importlib


def _load_driver(backend, **kargs):
    """Load the correct backend driver for data persistent."""
    bk_module = importlib.import_module('backend', __package__)
    driver_cls = getattr(bk_module, str.capitalize(backend) + 'Backend')
    return driver_cls(**kargs)