code: def test_resolve_dataset_source_warns_when_multiple_matching_sources_found(
      tmp_path,
  ):
      class TestDatasetSourceCopy1(TestDatasetSource):
          pass
  
      class TestDatasetSourceCopy2(TestDatasetSource):
          pass
  
      registry1 = DatasetSourceRegistry()
      registry1.register(TestDatasetSource)
      registry1.register(TestDatasetSourceCopy1)
      registry1.register(TestDatasetSourceCopy2)
  
      with mock.patch(
          "mlflow.data.dataset_source_registry.warnings.warn"
      ) as mock_warn:
          registry1.resolve("test:/" + str(tmp_path))
          mock_warn.assert_called_once()
          call_args, _ = mock_warn.call_args
          multiple_match_msg = call_args[0]
          assert (
              "The specified dataset source can be interpreted in multiple ways"
              in multiple_match_msg
          )
          assert (
              "TestDatasetSource, TestDatasetSourceCopy1, TestDatasetSourceCopy2"
              in multiple_match_msg
          )
          assert (
              "MLflow will assume that this is a TestDatasetSourceCopy2 source"
              in multiple_match_msg
          )
  
file_path: mlflow/tests/data/test_dataset_source_registry.py
imports: from typing import Any
  from unittest import mock
  import pytest
  from mlflow.data.dataset_source_registry import DatasetSourceRegistry
  from mlflow.exceptions import MlflowException
  from tests.resources.data.dataset_source import TestDatasetSource
label_desc: Use image node_id 6 for calling a global function with example usage: test_resolve_dataset_source_warns_when_multiple_matching_sources_found(tmp_path) without return types