code: def _test_histograms(self, run_name, tag_name, should_work=True):
      plugin = self.load_plugin(
          [
              self._RUN_WITH_SCALARS,
              self._RUN_WITH_LEGACY_HISTOGRAM,
              self._RUN_WITH_HISTOGRAM,
          ]
      )
      if should_work:
          self._check_histograms_result(
              plugin, tag_name, run_name, downsample=False
          )
          self._check_histograms_result(
              plugin, tag_name, run_name, downsample=True
          )
      else:
          with self.assertRaises(errors.NotFoundError):
              plugin.histograms_impl(
                  context.RequestContext(),
                  self._HISTOGRAM_TAG,
                  run_name,
                  experiment="exp",
              )
  
imports: import collections.abc
  import os.path
  import tensorflow
  from tensorboard import errors
  from tensorboard import context
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.backend.event_processing import tag_types
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.histogram import histograms_plugin
  from tensorboard.plugins.histogram import summary
  from tensorboard.util import test_util
label_desc: Use image node_id 7 for calling the HistogramsPluginTest obj's underlying member method code with example usage: obj._test_histograms(run_name, tag_name, should_work) without return types