code: def create_summary_metadata(display_name, description):
      """Create a `summary_pb2.SummaryMetadata` proto for text plugin data.
  
      Returns:
        A `summary_pb2.SummaryMetadata` protobuf object.
      """
      content = plugin_data_pb2.TextPluginData(version=PROTO_VERSION)
      metadata = summary_pb2.SummaryMetadata(
          display_name=display_name,
          summary_description=description,
          plugin_data=summary_pb2.SummaryMetadata.PluginData(
              plugin_name=PLUGIN_NAME,
              content=content.SerializeToString(),
          ),
      )
      return metadata
  
imports: from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.text import plugin_data_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: create_summary_metadata(display_name, description) and returns: metadata