code: def test_tags(self):
      self._write_scalar("run1", "scalars/tagA", None)
      self._write_scalar("run1", "scalars/tagA", None)
      self._write_scalar("run1", "scalars/tagB", None)
      self._write_scalar("run2", "scalars/tagB", None)
      self._write_histogram("run1", "histograms/tagA", None)
      self._write_histogram("run1", "histograms/tagA", None)
      self._write_histogram("run1", "histograms/tagB", None)
      self._write_histogram("run2", "histograms/tagB", None)
      self._write_image("run1", "images/tagA", 1, None)
      self._write_image("run1", "images/tagA", 2, None)
      self._write_image("run1", "images/tagB", 3, None)
      self._write_image("run2", "images/tagB", 4, None)
  
      self._multiplexer.Reload()
  
      response = self._plugin._tags_impl(
          context.RequestContext(), "eid"
      )
  
      self.assertEqual(
          {
              "runTagInfo": {
                  "run1": ["scalars/tagA", "scalars/tagB"],
                  "run2": ["scalars/tagB"],
              },
              "tagDescriptions": {},
          },
          response["scalars"],
      )
      self.assertEqual(
          {
              "runTagInfo": {
                  "run1": ["histograms/tagA", "histograms/tagB"],
                  "run2": ["histograms/tagB"],
              },
              "tagDescriptions": {},
          },
          response["histograms"],
      )
      self.assertEqual(
          {
              "tagDescriptions": {},
              "tagRunSampledInfo": {
                  "images/tagA": {"run1": {"maxSamplesPerStep": 2}},
                  "images/tagB": {
                      "run1": {"maxSamplesPerStep": 3},
                      "run2": {"maxSamplesPerStep": 4},
                  },
              },
          },
          response["images"],
      )
  
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 11 for calling the MetricsPluginTest obj's underlying member method code with example usage: obj.test_tags() without return types