Why can the author write such a beautiful poem on the street in heaven? What creative techniques are mainly used?

As follows:

Creative skills of imagination and association are used. Street lamps are linked with the stars in the sky, the stars are linked with street lamps in the sky, and then the street lamps in the sky are linked with the market in the sky. Imagine that there must be a beautiful and prosperous market and people wandering in the market in the sky, and then think of the legendary cowherd and weaver girl, and imagine them riding cows across the Tianhe River with lanterns and walking freely in the street.

Appreciate:

The article "The Market in the Sky" is a fictional article by Guo Moruo, a famous writer in China. The first section of the article compares street lamps and stars to street lamps by using figurative rhetoric. The last three sections are all part of the author's imagination. The imaginary life is beautiful and the reality is cruel, which is in sharp contrast with the present situation of people living in poverty. This article reposes the author's beautiful expectation for the future.