code: def _mock_blocks(size=(1, 1), offset=(0, 0)):
      sub_size = (size[0] / 4, size[1] / 4)
      return [
          elements.Block(
              _mock_lines(size=sub_size, offset=offset),
              _mock_artefacts(
                  size=sub_size,
                  offset=(
                      offset[0] + sub_size[0],
                      offset[1] + sub_size[1],
                  ),
              ),
          ),
          elements.Block(
              _mock_lines(
                  size=sub_size,
                  offset=(
                      offset[0] + 2 * sub_size[0],
                      offset[1] + 2 * sub_size[1],
                  ),
              ),
              _mock_artefacts(
                  size=sub_size,
                  offset=(
                      offset[0] + 3 * sub_size[0],
                      offset[1] + 3 * sub_size[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 5 for calling a global function with example usage: _mock_blocks(size, offset) and returns: list