Another interpretation. "East of the Garden of Eden" the angels were created, as it is written, "this is the living creature that I saw, and I knew that they were cherubim" (Ezekiel 10:20). "And the flaming sword": after the manner of, "His ministers a flaming fire" (Psalms 104:4). "That turns itself": for they turn themselves - sometimes men, sometimes women, sometimes spirits, sometimes angels.
The Shape-Shifting Cherubim and the Flaming Sword
Yalkut Shimoni on Torah 34:8
דָּבָר אַחֵר, מִקֶּדֶם לְגַן עֵדֵן נִבְרְאוּ הַמַּלְאָכִים, הֲדָא הוּא דִּכְתִיב "הִיא הַחַיָּה אֲשֶׁר רָאִיתִי וָאֵדַע כִּי כְּרוּבִים הֵמָּה" וְאֵת לַהַט הַחֶרֶב. עַל שֵׁם (תהלים קד, ד) "מְשָׁרְתָיו אֵשׁ לֹהֵט" הַמִּתְהַפֶּכֶת. שֶׁהֵן מִתְהַפְּכִין פְּעָמִים אֲנָשִׁים פְּעָמִים נָשִׁים פְּעָמִים רוּחוֹת פְּעָמִים מַלְאָכִים.