def _unique_partition_id(course):
 used_ids = set((p.id for p in course.user_partitions))
 return generate_int_id(used_ids=used_ids)

def _unique_partition_id ( course ) : used_ids = set ( ( p . id for p in course . user_partitions ) ) return generate_int_id ( used_ids = used_ids )
return a unique user partition id for the course .