This document discusses a generic composite design pattern in Python. It begins with an introduction to design patterns and the composite pattern. It then describes the limitations of a traditional object-oriented implementation of the composite pattern. The document proposes an alternative implementation using decorators, iterators, and other patterns. Code examples are provided to demonstrate how this generic composite pattern can be applied to build templates for cloud infrastructure and Kubernetes manifests.