class_docstr: Represents the source of a dataset stored in a spark table.
class_docstr_tok: ["Represents","the","source","of","a","dataset","stored","in","a","spark","table","."]
code: def _to_dict(self) -> Dict[Any, Any]:
      info = {}
      if self._path is not None:
          info["path"] = self._path
      elif self._table_name is not None:
          info["table_name"] = self._table_name
      elif self._sql is not None:
          info["sql"] = self._sql
      return info
  
file_path: mlflow/mlflow/data/spark_dataset_source.py
imports: from typing import Any, Dict, Optional
  from mlflow.data.dataset_source import DatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.utils.annotations import experimental
label_desc: Use image node_id 6 for calling the SparkDatasetSource obj's underlying member method code with example usage: obj._to_dict() and returns: info