code: def monkeypatch_session(request):
      mpatch = pytest.MonkeyPatch()
      yield mpatch
      mpatch.undo()
  
file_path: mlflow/tests/spark/autologging/conftest.py
imports: import os
  import tempfile
  import pytest
  from pyspark.sql import Row
  from pyspark.sql.types import IntegerType, StringType, StructField, StructType
  from mlflow._spark_autologging import clear_table_infos
  from tests.spark.autologging.utils import _get_or_create_spark_session
label_desc: Use image node_id 1 for calling a global function with example usage: monkeypatch_session(request) without return types