load_graph does not work with pathlib.Path object
The following code does not work if task_graph_path is a pathlib.Path() object:
graph = load_graph(task_graph_path, root_dir=flows_dir)
The following code works:
graph = load_graph(str(task_graph_path), root_dir=flows_dir)