An energy pyramid is a diagram that represents the flow of energy in an ecosystem. It shows how energy is transferred from one organism to another, starting with the producers (organisms that convert sunlight into energy through photosynthesis) and progressing through the different trophic levels, including herbivores, omnivores, carnivores, and consumers. The pyramid illustrates that energy is lost as it moves up the food chain, with each trophic level receiving only a fraction of the energy from the level below. Therefore, the correct answer explains the purpose and structure of an energy pyramid accurately.