<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def profileGroupName(self, profile=None):
 """ Returns the name of the QSetting group for the profile. Converts to lower case and removes whitespace, interpunction, etc. Prepends _debug_ if the debugging flag is set :param profile: profile name. If None the current profile is used. """

        profile = profile if profile else self.profile
        profGroupName = '_debug_' if DEBUGGING else ''
        profGroupName += string_to_identifier(profile)
        return profGroupName