code: def get_dataset_source_from_json(
      source_json: str, source_type: str
  ) -> DatasetSource:
      """Parses and returns a DatasetSource object from its JSON representation.
  
      Args:
          source_json: The JSON representation of the DatasetSource.
          source_type: The string type of the DatasetSource, which indicates how to parse the
              source JSON.
      """
      return _dataset_source_registry.get_source_from_json(
          source_json=source_json, source_type=source_type
      )
  
file_path: mlflow/mlflow/data/dataset_source_registry.py
imports: import warnings
  from typing import Any, List, Optional
  import entrypoints
  from mlflow.data.artifact_dataset_sources import register_artifact_dataset_sources
  from mlflow.data.dataset_source import DatasetSource
  from mlflow.data.http_dataset_source import HTTPDatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import RESOURCE_DOES_NOT_EXIST
label_desc: Use image node_id 3 for calling a global function with example usage: get_dataset_source_from_json(source_json, source_type) and returns: _dataset_source_registry