def preprocess( source: gv.Source, stagger: int = None, fanout: bool = False, chain: int = None, ) -> gv.Source: """ Preprocess source for rendering. Parameters ---------- source Graphviz source to preprocess stagger maximum Graphviz unflatten stagger fanout enable Graphviz unflatten fanout chain maximum Graphviz unflatten chain """ return source.unflatten(stagger=stagger, fanout=fanout, chain=chain)