code: def test_log_image_numpy_emits_warning_for_out_of_range_values(array):
      import numpy as np
  
      image = np.array(array).astype(type(array[0][0]))
  
      with mlflow.start_run(), mock.patch(
          "mlflow.tracking.client._logger.warning"
      ) as warn_mock:
          mlflow.log_image(image, "image.png")
          range_str = (
              "[0, 255]" if isinstance(array[0][0], int) else "[0, 1]"
          )
          msg = (
              "Out-of-range values are detected. Clipping array "
              f"(dtype: '{image.dtype}') to {range_str}"
          )
          assert any(
              msg in args[0] for args in warn_mock.call_args_list
          )
  
file_path: mlflow/tests/tracking/test_log_image.py
imports: import os
  import posixpath
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.utils.file_utils import local_file_uri_to_path
label_desc: Use image node_id 5 for calling a global function with example usage: test_log_image_numpy_emits_warning_for_out_of_range_values(array) without return types