docstr: Writes the frame to disk as a tensor summary.
docstr_tok: ["Writes","the","frame","to","disk","as","a","tensor","summary","."]
code: def _write_summary(self, frame):
      """Writes the frame to disk as a tensor summary."""
      path = "{}/{}".format(self.PLUGIN_LOGDIR, SUMMARY_FILENAME)
      smd = SummaryMetadata()
      tensor = TensorProto(
          dtype="DT_FLOAT",
          float_val=frame.reshape(-1).tolist(),
          tensor_shape=TensorShapeProto(
              dim=[
                  TensorShapeProto.Dim(size=frame.shape[0]),
                  TensorShapeProto.Dim(size=frame.shape[1]),
                  TensorShapeProto.Dim(size=frame.shape[2]),
              ]
          ),
      )
      summary = Summary(
          value=[
              Summary.Value(tag=TAG_NAME, metadata=smd, tensor=tensor)
          ]
      ).SerializeToString()
      write_file(summary, path)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from ..proto.summary_pb2 import Summary
  from ..proto.summary_pb2 import SummaryMetadata
  from ..proto.tensor_pb2 import TensorProto
  from ..proto.tensor_shape_pb2 import TensorShapeProto
  import os
  import time
  import numpy
  from .file_system_tools import read_pickle, write_pickle, write_file
  from .shared_config import PLUGIN_NAME, TAG_NAME, SUMMARY_FILENAME, DEFAULT_CONFIG, CONFIG_FILENAME, SUMMARY_COLLECTION_KEY_NAME, SECTION_INFO_FILENAME
  from .None import video_writing
label_desc: Use image node_id 3 for calling the Beholder obj's underlying member method code with example usage: obj._write_summary(frame) without return types