code: def test_block():
      geom = ((0, 0), (1, 1))
      sub_size = (geom[1][0] / 2, geom[1][0] / 2)
      lines = _mock_lines(size=sub_size, offset=geom[0])
      artefacts = _mock_artefacts(size=sub_size, offset=sub_size)
      block = elements.Block(lines, artefacts)
  
      # Attribute checks
      assert len(block.lines) == len(lines)
      assert len(block.artefacts) == len(artefacts)
      assert all(isinstance(w, elements.Line) for w in block.lines)
      assert all(
          isinstance(a, elements.Artefact) for a in block.artefacts
      )
      assert block.geometry == geom
  
      # Render
      assert block.render() == "hello world\nhello world"
  
      # Export
      assert block.export() == {
          "lines": [line.export() for line in lines],
          "artefacts": [artefact.export() for artefact in artefacts],
          "geometry": geom,
      }
  
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 13 for calling a global function with example usage: test_block() without return types