code: def _create_local_spark_session_for_recipes():
      """Create a sparksession to be used within an recipe step run in a subprocess locally."""
  
      try:
          from pyspark.sql import SparkSession
      except ImportError:
          # Return None if user doesn't have PySpark installed
          return None
      _prepare_subprocess_environ_for_creating_local_spark_session()
      return (
          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.execution.arrow.pyspark.enabled", "true")
          .getOrCreate()
      )
  
file_path: mlflow/mlflow/utils/_spark_utils.py
imports: import contextlib
  import os
  import shutil
  import tempfile
  import zipfile
label_desc: Use image node_id 3 for calling a global function with example usage: _create_local_spark_session_for_recipes() and returns: SparkSession, None