This list will probably grow over time and pylint will start to moan about to many elif cases. So I would suggest to use dictionary:  ```python  shape_function_map = {      DagShape.LINEAR: chain,      DagShape.BINARY_TREE: chain_as_binary_tree,      ...  }  builder = shape_function_map[SHAPE]  builder(*tasks)  ```