code: def mock_svt_dataset(tmpdir_factory, mock_image_stream):
      root = tmpdir_factory.mktemp("datasets")
      svt_root = root.mkdir("svt1")
      labels = """<tagset><image><imageName>img/00_00.jpg</imageName>
      <address>341 Southwest 10th Avenue Portland OR</address><lex>LIVING,ROOM,THEATERS</lex>
      <Resolution x="1280" y="880"/><taggedRectangles><taggedRectangle height="75" width="236" x="375" y="253">
      <tag>LIVING</tag></taggedRectangle></taggedRectangles></image><image><imageName>img/00_01.jpg</imageName>
      <address>1100 Southwest 6th Avenue Portland OR</address><lex>LULA</lex><Resolution x="1650" y="500"/>
      <taggedRectangles><taggedRectangle height="80" width="250" x="450" y="242"><tag>HOUSE</tag></taggedRectangle>
      </taggedRectangles></image><image><imageName>img/00_02.jpg</imageName>
      <address>341 Southwest 10th Avenue Portland OR</address><lex>LIVING,ROOM,THEATERS</lex><Resolution x="850" y="420"/>
      <taggedRectangles><taggedRectangle height="100" width="250" x="350" y="220"><tag>COST</tag></taggedRectangle>
      </taggedRectangles></image></tagset>"""
  
      with open(svt_root.join("train.xml"), "w") as f:
          f.write(labels)
  
      image_folder = svt_root.mkdir("img")
      file = BytesIO(mock_image_stream)
      for i in range(3):
          fn = image_folder.join(f"00_0{i}.jpg")
          with open(fn, "wb") as f:
              f.write(file.getbuffer())
      # Packing data into an archive to simulate the real data set and bypass archive extraction
      archive_path = root.join("svt.zip")
      shutil.make_archive(root.join("svt"), "zip", str(svt_root))
      return str(archive_path)
  
imports: import json
  import shutil
  import tempfile
  from io import BytesIO
  import cv2
  import hdf5storage
  import numpy
  import pytest
  import requests
  import scipy.io
  from PIL import Image
  from doctr.datasets.generator.base import synthesize_text_img
  from doctr.io import reader
  from doctr.utils import geometry
label_desc: Use image node_id 22 for calling a global function with example usage: mock_svt_dataset(tmpdir_factory, mock_image_stream) and returns: str