def METHOD_NAME(cls, source_dict: Dict[Any, Any]) -> DatasetForArtifactRepoSourceType:
    uri = source_dict.get("uri")
    if uri is None:
        raise MlflowException(
            f'Failed to parse {dataset_source_name}. Missing expected key: "uri"',
            INVALID_PARAMETER_VALUE,
        )
    return cls(uri=uri)