code: def parse_plugin_metadata(content):
      """Parse summary metadata to a Python object.
  
      Arguments:
        content: The `content` field of a `SummaryMetadata` proto
          corresponding to the mesh plugin.
  
      Returns:
        A `MeshPluginData` protobuf object.
      Raises: Error if the version of the plugin is not supported.
      """
      if not isinstance(content, bytes):
          raise TypeError("Content type must be bytes.")
      result = plugin_data_pb2.MeshPluginData.FromString(content)
      # Add components field to older version of the proto.
      if result.components == 0:
          result.components = get_components_bitmask(
              [
                  plugin_data_pb2.MeshPluginData.VERTEX,
                  plugin_data_pb2.MeshPluginData.FACE,
                  plugin_data_pb2.MeshPluginData.COLOR,
              ]
          )
      return result
  
file_path: tensorboard/tensorboard/plugins/mesh/metadata.py
imports: import dataclasses
  from typing import Any
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.mesh import plugin_data_pb2
label_desc: Use image node_id 5 for calling a global function with example usage: parse_plugin_metadata(content) and returns: result