code: def test_enabling_autologging_does_not_throw_when_spark_hasnt_been_started(
      spark_session,
  ):
      spark_session.stop()
      mlflow.spark.autolog(disable=True)
  
imports: import time
  import mlflow
  import mlflow.spark
  from tests.spark.autologging.utils import _assert_spark_data_logged, _assert_spark_data_not_logged
label_desc: Use image node_id 4 for calling a global function with example usage: test_enabling_autologging_does_not_throw_when_spark_hasnt_been_started(spark_session) without return types