code: def mock_tilted_payslip(mock_payslip, tmpdir_factory):
      image = reader.read_img_as_numpy(mock_payslip)
      image = geometry.rotate_image(image, 30, expand=True)
      tmp_path = str(
          tmpdir_factory.mktemp("data").join("mock_tilted_payslip.jpg")
      )
      cv2.imwrite(tmp_path, image)
      return tmp_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 4 for calling a global function with example usage: mock_tilted_payslip(mock_payslip, tmpdir_factory) and returns: tmp_path