class_docstr: Metrics Plugin for TensorBoard.
docstr: Formats a histogram datum's bins for client consumption.
  
  Args:
      datum: a DataProvider's TensorDatum.
  
  Returns:
      A list of `HistogramBin`s (see http_api.md).
docstr_tok: ["Formats","a","histogram","datum","'s","bins","for","client","consumption",".","Args",":","datum",":","a","DataProvider","'s","TensorDatum",".","Returns",":","A","list","of","`","HistogramBin","`","s","(","see","http_api.md",")","."]
code: def _format_histogram_datum_bins(self, datum):
      """Formats a histogram datum's bins for client consumption.
  
      Args:
          datum: a DataProvider's TensorDatum.
  
      Returns:
          A list of `HistogramBin`s (see http_api.md).
      """
      numpy_list = datum.numpy.tolist()
      bins = [
          {"min": x[0], "max": x[1], "count": x[2]} for x in numpy_list
      ]
      return bins
  
imports: import collections
  import imghdr
  import json
  from werkzeug import wrappers
  from tensorboard import errors
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.histogram import metadata
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.metrics import metadata
  from tensorboard.plugins.scalar import metadata
label_desc: Use image node_id 15 for calling the MetricsPlugin obj's underlying member method code with example usage: obj._format_histogram_datum_bins(datum) and returns: bins