code: def _get_or_create_spark_session(jars=None):
      jar_path = (
          jars if jars is not None else _get_mlflow_spark_jar_path()
      )
      return (
          SparkSession.builder.config("spark.jars", jar_path)
          .master("local[*]")
          .getOrCreate()
      )
  
file_path: mlflow/tests/spark/autologging/utils.py
imports: import os
  from pyspark.sql import SparkSession
  import mlflow
  from mlflow._spark_autologging import _SPARK_TABLE_INFO_TAG_NAME
label_desc: Use image node_id 5 for calling a global function with example usage: _get_or_create_spark_session(jars) and returns: SparkSession