code: def _create_summary_metadata(description):
      return summary_pb2.SummaryMetadata(
          summary_description=description,
          plugin_data=summary_pb2.SummaryMetadata.PluginData(
              plugin_name=metadata.PLUGIN_NAME,
              content=b"",  # no need for summary-specific metadata
          ),
          data_class=summary_pb2.DATA_CLASS_TENSOR,
      )
  
imports: import tensorflow.compat.v2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard_plugin_example import metadata
label_desc: Use image node_id 2 for calling a global function with example usage: _create_summary_metadata(description) and returns: summary_pb2