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