Turn the oven down to 350 F and leave the rack in the middle of the oven.
In a medium bowl, add in 300 grams of pumpkin puree (first pour off any excess water that has separated as it cooled), pumpkin spice, cinnamon, both sugars, eggs, sour cream, salt, oil, and vanilla.
Whisk until smooth.
Add in the flour, baking soda, and baking powder. Whisk again until just combined, scrape the sides and bottom of the bowl.
In a separate bowl whisk together the cocoa powder and brewed espresso until smooth.
Pour 400 grams of the batter into the chocolate espresso mix and use a spatula to fold the chocolate mixture into the pumpkin batter.
Scoop the pumpkin and chocolate batters into the loaf pan. If using this pan from USA pan, no need to line it but if using a different one, I recommend spraying it with a baking spray that includes flour or grease the pan and then line it with a sheet of parchment paper. Alternate the batters by scooping in 1/4 cup of one and then the other into the pan.
Once all of the batter has been used up, sprinkle the top of the batter with an additional 30-50 grams of granulated sugar.
Bake the cake on the middle rack in the preheated oven for 30 minutes. After 30 minutes rotate the pan 180 degrees and bake for another 20-25 minutes until the edges are golden brown and a toothpick inserted in the center comes out clean.
Once baked, remove the cake from the oven and set aside to cool for 20-30 minutes.
If needed, loosen the cake from the edges with a rubber or wooden spatula. Then tip or lift the loaf out and let it cool fully on a plate or piece of parchment paper.