code: def test_get_source_throws_for_invalid_input(tmp_path):
      with pytest.raises(
          MlflowException, match="Unrecognized dataset type.*str"
      ):
          mlflow.data.get_source(str(tmp_path))
  
file_path: mlflow/tests/data/test_dataset_source.py
imports: import json
  import pandas
  import pytest
  import mlflow.data
  from mlflow.exceptions import MlflowException
  from tests.resources.data.dataset_source import TestDatasetSource
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_source_throws_for_invalid_input(tmp_path) without return types