class_docstr: Basic interface for serializing an object to XML
class_docstr_tok: ["Basic","interface","for","serializing","an","object","to","XML"]
docstr: Output should be a xml.etree.ElementTree.Element
docstr_tok: ["Output","should","be","a","xml.etree.ElementTree.Element"]
code: def _to_xml_element(self) -> Element:
      """Output should be a xml.etree.ElementTree.Element"""
      raise NotImplementedError
  
file_path: nibabel/nibabel/xmlutils.py
imports: from io import BytesIO
  from xml.etree.ElementTree import Element, SubElement, tostring
  from xml.parsers.expat import ParserCreate
  from .filebasedimages import FileBasedHeader
label_desc: Use image node_id 1 for calling the XmlSerializable obj's underlying member method code with example usage: obj._to_xml_element() without return types