code: def test_element():
      with pytest.raises(KeyError):
          elements.Element(sub_elements=[1])
  
imports: from xml.etree.ElementTree import ElementTree
  import numpy
  import pytest
  from doctr.file_utils import CLASS_NAME
  from doctr.io import elements
label_desc: Use image node_id 8 for calling a global function with example usage: test_element() without return types