code: def mock_image(tmpdir_factory):
      url = "https://doctr-static.mindee.com/models?id=v0.2.1/bitmap30.png&src=0"
      file = BytesIO(requests.get(url).content)
      tmp_path = str(
          tmpdir_factory.mktemp("data").join("mock_bitmap.jpg")
      )
      with open(tmp_path, "wb") as f:
          f.write(file.getbuffer())
      image = reader.read_img_as_numpy(tmp_path)
      return image
  
file_path: doctr/tests/common/test_models.py
imports: from io import BytesIO
  import cv2
  import numpy
  import pytest
  import requests
  from doctr.io import reader
  from doctr.models._utils import estimate_orientation, get_language, invert_data_structure
  from doctr.utils import geometry
label_desc: Use image node_id 1 for calling a global function with example usage: mock_image(tmpdir_factory) and returns: image