code: def histogram_raw(
      name,
      min,
      max,
      num,
      sum,
      sum_squares,
      bucket_limits,
      bucket_counts,
  ):
      # pylint: disable=line-too-long
      """Outputs a `Summary` protocol buffer with a histogram.
      The generated
      [`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto)
      has one summary value containing a histogram for `values`.
      Args:
        name: A name for the generated node. Will also serve as a series name in
          TensorBoard.
        min: A float or int min value
        max: A float or int max value
        num: Int number of values
        sum: Float or int sum of all values
        sum_squares: Float or int sum of squares for all values
        bucket_limits: A numeric `Tensor` with upper value per bucket
        bucket_counts: A numeric `Tensor` with number of values per bucket
      Returns:
        A scalar `Tensor` of type `string`. The serialized `Summary` protocol
        buffer.
      """
      hist = HistogramProto(
          min=min,
          max=max,
          num=num,
          sum=sum,
          sum_squares=sum_squares,
          bucket_limit=bucket_limits,
          bucket=bucket_counts,
      )
      return Summary(value=[Summary.Value(tag=name, histo=hist)])
  
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 5 for calling a global function with example usage: histogram_raw(name, min, max, num, sum, sum_squares, bucket_limits, bucket_counts) and returns: Summary