code: def to_proto(self):
      response = ProtoCreateMultipartUpload.Response()
      if self.upload_id:
          response.upload_id = self.upload_id
      response.credentials.extend(
          [credential.to_proto() for credential in self.credentials]
      )
      return response
  
file_path: mlflow/mlflow/entities/multipart_upload.py
imports: from dataclasses import dataclass
  from typing import Any, Dict, List, Optional
  from mlflow.protos.mlflow_artifacts_pb2 import CreateMultipartUpload
  from mlflow.protos.mlflow_artifacts_pb2 import MultipartUploadCredential
label_desc: Use image node_id 1 for calling the CreateMultipartUploadResponse obj's underlying member method code with example usage: obj.to_proto() and returns: response