def import_backend(path):
    """Import a backend class by dotted path."""
    module_name, class_name = path.rsplit(".", 1)
    module = __import__(module_name, fromlist=[class_name])
    return getattr(module, class_name)