Construction of pyridine rings by metal-mediated [2 + 2 + 2] cycloaddition.