code: def test_model_export(jsl_model, model_path):
      mlflow.johnsnowlabs.save_model(jsl_model, path=model_path)
      # 1. score and compare reloaded sparkml model
      reloaded_model = mlflow.johnsnowlabs.load_model(
          model_uri=model_path
      )
      validate_model(jsl_model, reloaded_model)
      # 2. score and compare reloaded pyfunc
      validate_model(jsl_model, pyfunc.load_model(model_path))
      # 3. score and compare reloaded pyfunc Spark udf
      preds3 = score_model_as_udf(model_uri=model_path)
      df1 = (
          pd.DataFrame(json.loads(preds3[0]))
          .drop(columns=["index"])
          .reset_index()
          .drop(columns=["index"])
      )
      df2 = jsl_model.predict("Hello world")
      df1, df2 = fix_dataframe_with_respect_for_nlu_issues(df1, df2)
      pd.testing.assert_frame_equal(df1, df2)
      assert os.path.exists(MLFLOW_DFS_TMP.get())
  
imports: import json
  import os
  from pathlib import Path
  from unittest import mock
  import pandas
  import pyspark
  import pytest
  from johnsnowlabs import nlp
  from packaging.version import Version
  import mlflow
  import mlflow.utils.file_utils
  from mlflow import pyfunc
  from mlflow.environment_variables import MLFLOW_DFS_TMP
  from mlflow.models import Model, infer_signature
  from mlflow.models.utils import _read_example
  from mlflow.pyfunc import spark_udf
  from mlflow.utils.environment import _mlflow_conda_env
  from mlflow.utils.file_utils import TempDir
  from tests.helper_functions import assert_register_model_called_with_local_model_path
label_desc: Use image node_id 9 for calling a global function with example usage: test_model_export(jsl_model, model_path) without return types