C++ Get Game Mode

If Possible,
Can you Explain. What UGameplayStatics::GetGameMode Dose?