<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_membership(self, uuid=None):
 """Get membership data based on uuid. Args: uuid (str):
 optional uuid. defaults to self.cuuid Raises: PyLmodUnexpectedData: No data was returned. requests.RequestException: Exception connection error Returns: dict: membership json """

        group_id = self.get_group_id(uuid=uuid)
        uri = 'group/{group_id}/member'
        mbr_data = self.get(uri.format(group_id=group_id), params=None)
        return mbr_data