def METHOD_NAME(  # pylint: disable=keyword-arg-before-vararg
    kind: Literal["local", "rpc"] = "local",
    *args,
    **kwargs,
) -> "Runner":
    """Create a Runner."""
    from . import LocalRunner, RPCRunner  # pylint: disable=import-outside-toplevel
    if kind == "local":
        if "max_workers" in kwargs:
            kwargs.pop("max_workers")
        return LocalRunner(*args, **kwargs)  # type: ignore
    elif kind == "rpc":
        return RPCRunner(*args, **kwargs)  # type: ignore
    raise ValueError(f"Unknown Runner: {kind}")