TransformerFactory = Callable[['tuple[str, ...]'], StreamTransformer]Factory that builds a scoped transformer for a mux.
Called once per StreamMux with the mux's scope (typically () for
the root). Standard transformer classes accept a single positional
scope argument, so the class itself is a valid factory. User
transformers can close over their config:
lambda scope: MyTransformer(scope, foo=...).