pub fn flatten_pipeline_element(
    working_set: &StateWorkingSet<'_>,
    pipeline_element: &PipelineElement
) -> Vec<(Span, FlatShape)>