code: def make_sub_element(parent, tag, nsmap=None):
      
      if use_lxml:
          return etree.SubElement(parent, tag, nsmap=nsmap)
      return etree.SubElement(parent, tag)
docs: Wrapper for etree.SubElement, that takes care of unsupported nsmap option.