code: def _mock_artefacts(size=(1, 1), offset=(0, 0), confidence=0.8):
      sub_size = (size[0] / 2, size[1] / 2)
      return [
          elements.Artefact(
              "qr_code",
              confidence,
              (
                  (offset[0], offset[1]),
                  (sub_size[0] + offset[0], sub_size[1] + offset[1]),
              ),
          ),
          elements.Artefact(
              "qr_code",
              confidence,
              (
                  (sub_size[0] + offset[0], sub_size[1] + offset[1]),
                  (size[0] + offset[0], size[1] + offset[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 2 for calling a global function with example usage: _mock_artefacts(size, offset, confidence) and returns: list