def METHOD_NAME(graph: "DiGraph"):
    from dvc.dagascii import draw
    from dvc.repo.graph import get_pipelines
    pipelines = get_pipelines(graph)
    ret = []
    for pipeline in pipelines:
        ret.append(draw(pipeline.nodes, pipeline.edges))
    return "\n".join(ret)