def METHOD_NAME(cls, source_dict: Dict[Any, Any]) -> "HuggingFaceDatasetSource":
    return cls(
        path=source_dict.get("path"),
        config_name=source_dict.get("config_name"),
        data_dir=source_dict.get("data_dir"),
        data_files=source_dict.get("data_files"),
        split=source_dict.get("split"),
        revision=source_dict.get("revision"),
        task=source_dict.get("task"),
    )