code: def mock_mjsynth_dataset(tmpdir_factory, mock_image_stream):
      root = tmpdir_factory.mktemp("datasets")
      mjsynth_root = root.mkdir("mjsynth")
      image_folder = mjsynth_root.mkdir("images")
      label_file = mjsynth_root.join("imlist.txt")
      labels = [
          "./mjsynth/images/12_I_34.jpg\n",
          "./mjsynth/images/12_am_34.jpg\n",
          "./mjsynth/images/12_a_34.jpg\n",
          "./mjsynth/images/12_Jedi_34.jpg\n",
          "./mjsynth/images/12_!_34.jpg\n",
      ]
  
      with open(label_file, "w") as f:
          for label in labels:
              f.write(label)
  
      file = BytesIO(mock_image_stream)
      for i in ["I", "am", "a", "Jedi", "!"]:
          fn = image_folder.join(f"12_{i}_34.jpg")
          with open(fn, "wb") as f:
              f.write(file.getbuffer())
      return str(root), str(label_file)
  
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 24 for calling a global function with example usage: mock_mjsynth_dataset(tmpdir_factory, mock_image_stream) and returns: str,  str