class_docstr: MLflow entity for Registered Model.
class_docstr_tok: ["MLflow","entity","for","Registered","Model","."]
code: def to_proto(self):
      # returns mlflow.protos.model_registry_pb2.RegisteredModel
      rmd = ProtoRegisteredModel()
      rmd.name = self.name
      if self.creation_timestamp is not None:
          rmd.creation_timestamp = self.creation_timestamp
      if self.last_updated_timestamp:
          rmd.last_updated_timestamp = self.last_updated_timestamp
      if self.description:
          rmd.description = self.description
      if self.latest_versions is not None:
          rmd.latest_versions.extend(
              [
                  model_version.to_proto()
                  for model_version in self.latest_versions
              ]
          )
      rmd.tags.extend(
          [
              ProtoRegisteredModelTag(key=key, value=value)
              for key, value in self._tags.items()
          ]
      )
      rmd.aliases.extend(
          [
              ProtoRegisteredModelAlias(
                  alias=alias, version=str(version)
              )
              for alias, version in self._aliases.items()
          ]
      )
      return rmd
  
imports: from mlflow.entities.model_registry._model_registry_entity import _ModelRegistryEntity
  from mlflow.entities.model_registry.model_version import ModelVersion
  from mlflow.entities.model_registry.registered_model_alias import RegisteredModelAlias
  from mlflow.entities.model_registry.registered_model_tag import RegisteredModelTag
  from mlflow.protos.model_registry_pb2 import RegisteredModel
  from mlflow.protos.model_registry_pb2 import RegisteredModelAlias
  from mlflow.protos.model_registry_pb2 import RegisteredModelTag
label_desc: Use image node_id 17 for calling the RegisteredModel obj's underlying member method code with example usage: obj.to_proto() and returns: rmd