def METHOD_NAME(self, user_partition_id):
    """
    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.
    """
    return get_partition_from_id(self.course_partitions, user_partition_id)