import importlib


def load_backend(config):
    """
    Returns the backend module from the given SocketShark configuration.
    """
    backend_name = config.get('BACKEND', 'websockets')
    backend_module = 'socketshark.backend.{}'.format(backend_name)
    return importlib.import_module(backend_module)