def METHOD_NAME(self) -> Iterable[GroupMembershipClass]:
    if self.groups is not None:
        group_membership = GroupMembershipClass(
            groups=[builder.make_group_urn(group) for group in self.groups]
        )
        return [group_membership]
    else:
        return []