<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __assembleURL(self, url, groupId):
 """private function that assembles the URL for the community.Group class"""

        from ..packages.six.moves.urllib_parse import urlparse
        parsed = urlparse(url)
        communityURL = "%s://%s%s/sharing/rest/community/groups/%s" % (parsed.scheme, parsed.netloc,
                                                                        parsed.path.lower().split('/sharing/rest/')[0],
                                                                        groupId)
        return communityURL