7. Use $m$ colors to paint the 6 edges of a regular tetrahedron, with each edge painted one color. Find the number of distinct edge-colored regular tetrahedrons.
7. $\frac{1}{12}\left(m^{6}+3 m^{4}+8 m^{2}\right)$.