code: def mock_ic13(tmpdir_factory, mock_image_stream):
      file = BytesIO(mock_image_stream)
      image_folder = tmpdir_factory.mktemp("images")
      label_folder = tmpdir_factory.mktemp("labels")
      labels = [
          "100, 100, 200, 200,  'I'\n",
          "250, 300, 455, 678, 'am'\n",
          "321, 485, 529, 607, 'a'\n",
          "235, 121, 325, 621, 'jedi'\n",
          "468, 589, 1120, 2520, '!'",
      ]
      for i in range(5):
          fn_l = label_folder.join(f"gt_mock_image_file_{i}.txt")
          with open(fn_l, "w") as f:
              f.writelines(labels)
          fn_i = image_folder.join(f"mock_image_file_{i}.jpg")
          with open(fn_i, "wb") as f:
              f.write(file.getbuffer())
      return str(image_folder), str(label_folder)
  
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 13 for calling a global function with example usage: mock_ic13(tmpdir_factory, mock_image_stream) and returns: str,  str