code: def mock_wildreceipt_dataset(tmpdir_factory, mock_image_stream):
      file = BytesIO(mock_image_stream)
      root = tmpdir_factory.mktemp("datasets")
      wildreceipt_root = root.mkdir("wildreceipt")
      annotations_folder = wildreceipt_root
      image_folder = wildreceipt_root.mkdir("image_files")
  
      labels = {
          "file_name": "Image_58/20/receipt_0.jpeg",
          "height": 348,
          "width": 348,
          "annotations": [
              {
                  "box": [
                      263.0,
                      283.0,
                      325.0,
                      283.0,
                      325.0,
                      260.0,
                      263.0,
                      260.0,
                  ],
                  "text": "$55.96",
                  "label": 17,
              },
              {
                  "box": [
                      274.0,
                      308.0,
                      326.0,
                      308.0,
                      326.0,
                      286.0,
                      274.0,
                      286.0,
                  ],
                  "text": "$4.48",
                  "label": 19,
              },
          ],
      }
      labels2 = {
          "file_name": "Image_58/20/receipt_1.jpeg",
          "height": 348,
          "width": 348,
          "annotations": [
              {
                  "box": [
                      386.0,
                      409.0,
                      599.0,
                      409.0,
                      599.0,
                      373.0,
                      386.0,
                      373.0,
                  ],
                  "text": "089-46169340",
                  "label": 5,
              }
          ],
      }
  
      annotation_file = annotations_folder.join("train.txt")
      with open(annotation_file, "w") as f:
          json.dump(labels, f)
          f.write("\n")
          json.dump(labels2, f)
          f.write("\n")
      file = BytesIO(mock_image_stream)
      wildreceipt_image_folder = image_folder.mkdir("Image_58")
      wildreceipt_image_folder = wildreceipt_image_folder.mkdir("20")
      for i in range(2):
          fn_i = wildreceipt_image_folder.join(f"receipt_{i}.jpeg")
          with open(fn_i, "wb") as f:
              f.write(file.getbuffer())
      return str(image_folder), str(annotation_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 26 for calling a global function with example usage: mock_wildreceipt_dataset(tmpdir_factory, mock_image_stream) and returns: str,  str