code: def _from_dict(cls, source_dict: Dict[Any, Any]) -> DatasetSource:
      uri = source_dict.get("uri")
      if uri is None:
          raise MlflowException(
              'Failed to parse dummy dataset source. Missing expected key: "uri"',
              INVALID_PARAMETER_VALUE,
          )
  
      return cls(uri=uri)
  
file_path: mlflow/tests/resources/data/dataset_source.py
imports: from typing import Any, Dict
  from urllib.parse import urlparse
  from mlflow.artifacts import download_artifacts
  from mlflow.data.dataset_source import DatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
label_desc: Use image node_id 8 for calling the TestDatasetSource obj's underlying member method code with example usage: obj._from_dict(cls, source_dict) and returns: cls