code: def test_log_model_calls_register_model(tmp_path, basic_model):
      artifact_path = "sentence_transformer"
      register_model_patch = mock.patch(
          "mlflow.tracking._model_registry.fluent._register_model"
      )
      with mlflow.start_run(), register_model_patch:
          conda_env = tmp_path.joinpath("conda_env.yaml")
          _mlflow_conda_env(
              conda_env,
              additional_pip_deps=[
                  "transformers",
                  "torch",
                  "sentence-transformers",
              ],
          )
          mlflow.sentence_transformers.log_model(
              model=basic_model,
              artifact_path=artifact_path,
              conda_env=str(conda_env),
              registered_model_name="My super cool encoder",
          )
          model_uri = (
              f"runs:/{mlflow.active_run().info.run_id}/{artifact_path}"
          )
          assert_register_model_called_with_local_model_path(
              register_model_mock=mlflow.tracking._model_registry.fluent._register_model,
              model_uri=model_uri,
              registered_model_name="My super cool encoder",
          )
  
imports: import json
  import os
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import yaml
  from pyspark.sql import SparkSession
  from pyspark.sql.types import ArrayType, DoubleType
  from sentence_transformers import SentenceTransformer
  import mlflow
  import mlflow.pyfunc.scoring_server
  import mlflow.sentence_transformers
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, infer_signature
  from mlflow.models.utils import _read_example
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.utils.environment import _mlflow_conda_env
  from tests.helper_functions import _assert_pip_requirements, _compare_logged_code_paths, _mlflow_major_version_string, assert_register_model_called_with_local_model_path, pyfunc_serve_and_score_model
label_desc: Use image node_id 9 for calling a global function with example usage: test_log_model_calls_register_model(tmp_path, basic_model) without return types