'Return the group in the EnrollmentTrackUserPartition with the given name.
If no such group exists, returns `None`.'

@staticmethod
def get_group_by_name(partition, name):

    for group in partition.groups:
        if (group.name == name):
            return group
    return None
