code: def test_fz_write_pixmap_as_jpeg():
      width, height = 13, 37
      image = fitz.Pixmap(
          fitz.csGRAY, width, height, b"\x00" * (width * height), False
      )
  
      with fitz.Document(
          stream=image.tobytes(output="jpeg"), filetype="jpeg"
      ) as doc:
          test_pdf_bytes = doc.convert_to_pdf()
  
file_path: pymudf/tests/test_pixmap.py
imports: import fitz
  import os
  import platform
  import sys
  import tempfile
  import pytest
label_desc: Use image node_id 12 for calling a global function with example usage: test_fz_write_pixmap_as_jpeg() without return types