code: def from_proto(cls, proto):
      return cls(
          proto.part_number,
          proto.etag or None,
          proto.url or None,
      )
  
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 MultipartUploadPart obj's underlying member method code with example usage: obj.from_proto(cls, proto) and returns: cls