code: def test_diviner_log_model_calls_register_model(
      grouped_pmdarima, tmp_path
  ):
      artifact_path = "diviner"
      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=["diviner"])
          mlflow.diviner.log_model(
              diviner_model=grouped_pmdarima,
              artifact_path=artifact_path,
              conda_env=str(conda_env),
              registered_model_name="DivinerModel",
          )
          model_uri = (
              f"runs:/{mlflow.active_run().info.run_id}/{artifact_path}"
          )
          assert_register_model_called_with_local_model_path(
              mlflow.tracking._model_registry.fluent._register_model,
              model_uri,
              "DivinerModel",
          )
  
imports: import json
  import os
  from copy import deepcopy
  from pathlib import Path
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import yaml
  from diviner import GroupedPmdarima, GroupedProphet
  from diviner.utils.example_utils import example_data_generator
  import mlflow.diviner
  import mlflow.pyfunc.scoring_server
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, infer_signature
  from mlflow.models.model import MLMODEL_FILE_NAME
  from mlflow.models.utils import _read_example
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.utils.environment import _mlflow_conda_env
  from mlflow.utils.model_utils import _get_flavor_configuration
  from tests.helper_functions import _assert_pip_requirements, _compare_conda_env_requirements, _compare_logged_code_paths, _is_available_on_pypi, _mlflow_major_version_string, assert_register_model_called_with_local_model_path, pyfunc_serve_and_score_model
label_desc: Use image node_id 14 for calling a global function with example usage: test_diviner_log_model_calls_register_model(grouped_pmdarima, tmp_path) without return types