def runner_from_runnable(runnable, known_runners):
    """
    Gets a Runner instance from a Runnable
    """
    runner = known_runners.get(runnable.kind, None)
    if runner is not None:
        return runner(runnable)
    raise ValueError('Unsupported kind of runnable: %s' % runnable.kind)
