code: def proto_to_dict(proto: message.Message) -> Dict[str, Any]:
      """Simple JSON Formatter wrapper for consistent formatting."""
      return json_format.MessageToDict(
          message=proto, preserving_proto_field_name=True
      )
  
file_path: tfx/tfx/utils/proto_utils.py
imports: from typing import Any, Dict, Iterator, TypeVar, Optional
  from google.protobuf import any_pb2
  from google.protobuf import descriptor_pb2
  from google.protobuf import descriptor
  from google.protobuf import descriptor_pool
  from google.protobuf import json_format
  from google.protobuf import message
  from google.protobuf import message_factory
label_desc: Use image node_id 3 for calling a global function with example usage: proto_to_dict(proto) and returns: json_format