Add espresso to a shaker filled with ice, along with coffee liqueur, pistachio syrup, and vodka. Cover and shake until there is a foamy top. Strain the cocktails into two martini glasses, allowing the residual foaminess to pour out into each glass. Garnish with espresso beans and a healthy sprinkling of chopped pistachios. Serve immediately.