code: def test_time_series_histogram(self):
      self._write_histogram_data("run1", "histograms/tagA", [0, 10])
      self._multiplexer.Reload()
  
      requests = [
          {
              "plugin": "histograms",
              "tag": "histograms/tagA",
              "run": "run1",
          }
      ]
      response = self._plugin._time_series_impl(
          context.RequestContext(), "", requests
      )
      clean_response = self._clean_time_series_responses(response)
  
      # By default 30 bins will be generated.
      bins_zero = [{"min": 0, "max": 0, "count": 0}] * 29 + [
          {"min": 0, "max": 0, "count": 1.0}
      ]
      bins_ten = [{"min": 10, "max": 10, "count": 0}] * 29 + [
          {"min": 10, "max": 10, "count": 1.0}
      ]
  
      self.assertEqual(
          [
              {
                  "plugin": "histograms",
                  "tag": "histograms/tagA",
                  "run": "run1",
                  "runToSeries": {
                      "run1": [
                          {
                              "wallTime": "<wall_time>",
                              "step": 0,
                              "bins": bins_zero,
                          },
                          {
                              "wallTime": "<wall_time>",
                              "step": 1,
                              "bins": bins_ten,
                          },
                      ]
                  },
              }
          ],
          clean_response,
      )
  
imports: import argparse
  import collections.abc
  import os.path
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorboard import context
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.metrics import metrics_plugin
label_desc: Use image node_id 17 for calling the MetricsPluginTest obj's underlying member method code with example usage: obj.test_time_series_histogram() without return types