Example 1 Color each vertex of a square pyramid with one color, and make the endpoints of the same edge different colors. If only 5 colors are available, then the total number of different coloring methods is $\qquad$