code: def test_conversion_to_json_and_back():
      uri = "test:/my/test/uri"
      source = TestDatasetSource._resolve(uri)
      source_json = source.to_json()
      assert json.loads(source_json)["uri"] == uri
      reloaded_source = TestDatasetSource.from_json(source_json)
      assert reloaded_source.uri == source.uri
  
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 2 for calling a global function with example usage: test_conversion_to_json_and_back() without return types