class_docstr: Dataset object associated with an experiment.
code: def to_proto(self):
      dataset = ProtoDataset()
      dataset.name = self.name
      dataset.digest = self.digest
      dataset.source_type = self.source_type
      dataset.source = self.source
      if self.schema:
          dataset.schema = self.schema
      if self.profile:
          dataset.profile = self.profile
      return dataset
  
file_path: mlflow/mlflow/entities/dataset.py
imports: from typing import Optional
  from mlflow.entities._mlflow_object import _MLflowObject
  from mlflow.protos.service_pb2 import Dataset
  from mlflow.utils.annotations import experimental
label_desc: Use image node_id 9 for calling the Dataset obj's underlying member method code with example usage: obj.to_proto() and returns: dataset