class_docstr: Experiment object.
class_docstr_tok: ["Experiment","object","."]
code: def to_proto(self):
      experiment = ProtoExperiment()
      experiment.experiment_id = self.experiment_id
      experiment.name = self.name
      experiment.artifact_location = self.artifact_location
      experiment.lifecycle_stage = self.lifecycle_stage
      if self.creation_time:
          experiment.creation_time = self.creation_time
      if self.last_update_time:
          experiment.last_update_time = self.last_update_time
      experiment.tags.extend(
          [
              ProtoExperimentTag(key=key, value=val)
              for key, val in self._tags.items()
          ]
      )
      return experiment
  
file_path: mlflow/mlflow/entities/experiment.py
imports: from mlflow.entities._mlflow_object import _MLflowObject
  from mlflow.entities.experiment_tag import ExperimentTag
  from mlflow.protos.service_pb2 import Experiment
  from mlflow.protos.service_pb2 import ExperimentTag
label_desc: Use image node_id 14 for calling the Experiment obj's underlying member method code with example usage: obj.to_proto() and returns: experiment