pub fn create_pattern(session: &Session, attributes: &Attributes) -> ElementData