code: def spark_session_with_delta():
      with tempfile.TemporaryDirectory() as tmpdir:
          with SparkSession.builder.master("local[*]").config(
              "spark.jars.packages", "io.delta:delta-spark_2.12:3.0.0"
          ).config(
              "spark.sql.extensions",
              "io.delta.sql.DeltaSparkSessionExtension",
          ).config(
              "spark.sql.catalog.spark_catalog",
              "org.apache.spark.sql.delta.catalog.DeltaCatalog",
          ).config(
              "spark.sql.warehouse.dir", tmpdir
          ).getOrCreate() as spark:
              yield spark, tmpdir
  
file_path: mlflow/tests/evaluate/test_default_evaluator_delta.py
imports: import tempfile
  from typing import List
  import pandas
  import pytest
  from pyspark.sql import SparkSession
  import mlflow
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 3 for calling a global function with example usage: spark_session_with_delta() without return types