code: def test_log_model_with_signature_and_examples(jsl_model):
      example_ = jsl_model.predict("Hello World")
      signature_ = infer_signature(example_)
      artifact_path = "model"
      for signature in (None, signature_):
          for example in (None, example_):
              with mlflow.start_run():
                  mlflow.johnsnowlabs.log_model(
                      jsl_model,
                      artifact_path=artifact_path,
                      signature=signature,
                      input_example=example,
                  )
                  artifact_uri = mlflow.get_artifact_uri()
                  model_path = Path(artifact_uri) / artifact_path
                  mlflow_model = Model.load(model_path)
                  assert signature == mlflow_model.signature
                  if example is None:
                      assert (
                          mlflow_model.saved_input_example_info is None
                      )
                  else:
                      (
                          df1,
                          df2,
                      ) = fix_dataframe_with_respect_for_nlu_issues(
                          _read_example(mlflow_model, model_path)
                          .reset_index()
                          .drop(columns="index"),
                          example.reset_index().drop(columns="index"),
                      )
                      pd.testing.assert_frame_equal(df1, df2)
  
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 11 for calling a global function with example usage: test_log_model_with_signature_and_examples(jsl_model) without return types