code: def video(tag, tensor, fps=4, dataformats="NTCHW"):
      tag = _clean_tag(tag)
      tensor = make_np(tensor)
      tensor = convert_to_NTCHW(tensor, input_format=dataformats)
      tensor = _prepare_video(tensor)
      # If user passes in uint8, then we don't need to rescale by 255
      if tensor.dtype != np.uint8:
          tensor = (tensor * 255.0).astype(np.uint8)
  
      video = make_video(tensor, fps)
      return Summary(value=[Summary.Value(tag=tag, image=video)])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import numpy
  import os
  import re
  from .proto.summary_pb2 import Summary
  from .proto.summary_pb2 import HistogramProto
  from .proto.summary_pb2 import SummaryMetadata
  from .proto.tensor_pb2 import TensorProto
  from .proto.tensor_shape_pb2 import TensorShapeProto
  from .proto.plugin_pr_curve_pb2 import PrCurvePluginData
  from .proto.plugin_text_pb2 import TextPluginData
  from .proto.plugin_mesh_pb2 import MeshPluginData
  from .proto import layout_pb2
  from .x2num import make_np
  from .utils import _prepare_video, convert_to_HWC, convert_to_NTCHW
label_desc: Use image node_id 12 for calling a global function with example usage: video(tag, tensor, fps, dataformats) and returns: Summary