code: def test_image_data_from_time_series_query(self):
      self._write_image("run1", "images/tagA", samples=3)
      self._multiplexer.Reload()
  
      requests = [
          {
              "plugin": "images",
              "tag": "images/tagA",
              "run": "run1",
              "sample": 2,
          }
      ]
      original_response = self._plugin._time_series_impl(
          context.RequestContext(), "expid", requests
      )
      response = self._plugin._time_series_impl(
          context.RequestContext(), "expid", requests
      )
      clean_response = self._clean_time_series_responses(response)
  
      self.assertEqual(
          [
              {
                  "plugin": "images",
                  "tag": "images/tagA",
                  "run": "run1",
                  "sample": 2,
                  "runToSeries": {
                      "run1": [
                          {
                              "wallTime": "<wall_time>",
                              "step": 0,
                              "imageId": "<image_id>",
                          }
                      ]
                  },
              }
          ],
          clean_response,
      )
  
      image_id = original_response[0]["runToSeries"]["run1"][0][
          "imageId"
      ]
      (data, content_type) = self._plugin._image_data_impl(
          context.RequestContext(), image_id
      )
  
      self.assertIsInstance(data, bytes)
      self.assertGreater(len(data), 0)
  
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 24 for calling the MetricsPluginTest obj's underlying member method code with example usage: obj.test_image_data_from_time_series_query() without return types