code: def test_artefact():
      artefact_type = "qr_code"
      conf = 0.8
      geom = ((0, 0), (1, 1))
      artefact = elements.Artefact(artefact_type, conf, geom)
  
      # Attribute checks
      assert artefact.type == artefact_type
      assert artefact.confidence == conf
      assert artefact.geometry == geom
  
      # Render
      assert artefact.render() == "[QR_CODE]"
  
      # Export
      assert artefact.export() == {
          "type": artefact_type,
          "confidence": conf,
          "geometry": geom,
      }
  
      # Repr
      assert (
          artefact.__repr__()
          == f"Artefact(type='{artefact_type}', confidence={conf:.2})"
      )
  
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 11 for calling a global function with example usage: test_artefact() without return types