code: def disable_pyspark_pin_thread(monkeypatch_session):
      # PYSPARK_PIN_THREAD is set to true by default since Pyspark 3.2.0, which causes
      # issues with Py4J callbacks, so we ask users to set it to false.
      # We have to set this before creating the SparkSession, hence setting it session
      # -scoped, which is applied before module-scoped spark_session fixture
      monkeypatch_session.setenv("PYSPARK_PIN_THREAD", "false")
  
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 2 for calling a global function with example usage: disable_pyspark_pin_thread(monkeypatch_session) without return types