'Look for a user partition with a matching id in the course\'s partitions.
Note that this method can return an inactive user partition.
Returns:
A UserPartition, or None if not found.'

def get_user_partition(self, user_partition_id):

    return _get_partition_from_id(self.course_partitions, user_partition_id)
