code: def test_image_bad_request(self):
      self._write_image("run1", "images/tagA", 1, None)
      self._multiplexer.Reload()
  
      invalid_sample = 999
      requests = [
          {
              "plugin": "images",
              "tag": "images/tagA",
              "sample": invalid_sample,
              "run": "run1",
          },
          {"plugin": "images", "tag": "images/tagA", "run": "run1"},
          {
              "plugin": "images",
              "tag": "images/tagA",
          },
      ]
      response = self._plugin._time_series_impl(
          context.RequestContext(), "expid", requests
      )
      errors = [
          series_response.get("error", "")
          for series_response in response
      ]
  
      self.assertEqual(errors, ["", "Missing sample", "Missing run"])
  
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 25 for calling the MetricsPluginTest obj's underlying member method code with example usage: obj.test_image_bad_request() without return types