code: def test_custom_log_model_allowlist(tmp_path):
      allowlist_file_path = os.path.join(tmp_path, "allowlist")
      with open(allowlist_file_path, "w") as f:
          f.write("pyspark.ml.regression.LinearRegressionModel\n")
          f.write("pyspark.ml.classification.NaiveBayesModel\n")
  
      with (
          SparkSession.builder.config(
              "spark.mlflow.pysparkml.autolog.logModelAllowlistFile",
              allowlist_file_path,
          )
          .master("local[*]")
          .getOrCreate()
      ):
          mlflow.pyspark.ml.autolog()
          assert mlflow.pyspark.ml._log_model_allowlist == {
              "pyspark.ml.regression.LinearRegressionModel",
              "pyspark.ml.classification.NaiveBayesModel",
          }
  
imports: import os
  from pyspark.sql import SparkSession
  import mlflow
label_desc: Use image node_id 1 for calling a global function with example usage: test_custom_log_model_allowlist(tmp_path) without return types