code: def mock_payslip(tmpdir_factory):
      url = "https://3.bp.blogspot.com/-Es0oHTCrVEk/UnYA-iW9rYI/AAAAAAAAAFI/hWExrXFbo9U/s1600/003.jpg"
      file = BytesIO(requests.get(url).content)
      folder = tmpdir_factory.mktemp("data")
      fn = str(folder.join("mock_payslip.jpeg"))
      with open(fn, "wb") as f:
          f.write(file.getbuffer())
      return fn
  
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 3 for calling a global function with example usage: mock_payslip(tmpdir_factory) and returns: fn