Is there any Dynare code to solve heterogenous agent model with aggregate shocks using second-order perturbation?

I want to solve the heterogenous agent model with aggregate shocks using second-order perturbation in Dynare. Does anyone know if someone has already solved this type of model?