code: def test_load_model_from_remote_uri_succeeds(
      tmp_path, model_path, mock_s3_bucket, monkeypatch
  ):
      mlflow.set_tracking_uri(tmp_path.joinpath("mlruns").as_uri())
      monkeypatch.chdir(tmp_path)
      model_data_info = save_or_log_tf_model_by_mlflow128(
          tmp_path, "iris", "save_model", model_path
      )
  
      artifact_root = f"s3://{mock_s3_bucket}"
      artifact_path = "model"
      artifact_repo = S3ArtifactRepository(artifact_root)
      artifact_repo.log_artifacts(
          model_path, artifact_path=artifact_path
      )
  
      model_uri = artifact_root + "/" + artifact_path
      infer = mlflow.tensorflow.load_model(model_uri=model_uri)
      feed_dict = {
          df_column_name: tf.constant(
              model_data_info.inference_df[df_column_name]
          )
          for df_column_name in list(model_data_info.inference_df)
      }
      raw_preds = infer(**feed_dict)
      pred_dict = {
          column_name: raw_preds[column_name].numpy()
          for column_name in raw_preds.keys()
      }
  
      for col in pred_dict:
          np.testing.assert_allclose(
              np.array(pred_dict[col], dtype=float),
              np.array(model_data_info.raw_results[col], dtype=float),
              rtol=1e-6,
          )
  
imports: import collections
  import json
  import os
  import iris_data_utils
  import numpy
  import pandas
  import pandas.testing
  import pytest
  import tensorflow
  import mlflow
  import mlflow.pyfunc.scoring_server
  from mlflow import pyfunc
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.tensorflow import _TF2Wrapper
  from mlflow.utils.conda import get_or_create_conda_env
  from mlflow.utils.environment import _mlflow_conda_env
  from tests.helper_functions import assert_array_almost_equal, pyfunc_serve_and_score_model
label_desc: Use image node_id 4 for calling a global function with example usage: test_load_model_from_remote_uri_succeeds(tmp_path, model_path, mock_s3_bucket, monkeypatch) without return types