<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def create(
            self, request, parent_lookup_seedteam=None,
            parent_lookup_seedteam__organization=None):
        '''Add a permission to a team.'''
        team = self.check_team_permissions(
            request, parent_lookup_seedteam,
            parent_lookup_seedteam__organization)

        serializer = self.get_serializer(data=request.data)
        serializer.is_valid(raise_exception=True)
        permission = team.permissions.create(**serializer.validated_data)
        serializer = self.get_serializer(instance=permission)
        return Response(serializer.data, status=status.HTTP_201_CREATED)