code: def test_register_dataset_source_and_load_from_json(tmp_path):
      registry = DatasetSourceRegistry()
      registry.register(TestDatasetSource)
      resolved_source = registry.resolve("test:" + str(tmp_path))
      resolved_source_json = resolved_source.to_json()
      source_from_json = registry.get_source_from_json(
          source_json=resolved_source_json, source_type="test"
      )
      assert source_from_json.uri == resolved_source.uri
  
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 3 for calling a global function with example usage: test_register_dataset_source_and_load_from_json(tmp_path) without return types