class_docstr: Metrics Plugin for TensorBoard.
code: def _serve_time_series(self, request):
      ctx = plugin_util.context(request.environ)
      experiment = plugin_util.experiment_id(request.environ)
      if request.method == "POST":
          series_requests_string = request.form.get("requests")
      else:
          series_requests_string = request.args.get("requests")
      if not series_requests_string:
          raise errors.InvalidArgumentError("Missing 'requests' field")
      try:
          series_requests = json.loads(series_requests_string)
      except ValueError:
          raise errors.InvalidArgumentError(
              "Unable to parse 'requests' as JSON"
          )
  
      response = self._time_series_impl(
          ctx, experiment, series_requests
      )
      return http_util.Respond(request, response, "application/json")
  
imports: import collections
  import imghdr
  import json
  from werkzeug import wrappers
  from tensorboard import errors
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.histogram import metadata
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.metrics import metadata
  from tensorboard.plugins.scalar import metadata
label_desc: Use image node_id 9 for calling the MetricsPlugin obj's underlying member method code with example usage: obj._serve_time_series(request) and returns: http_util