class_docstr: Scalars Plugin for TensorBoard.
docstr: Given a tag and single run, return array of ScalarEvents.
docstr_tok: ["Given","a","tag","and","single","run",",","return","array","of","ScalarEvents","."]
code: def scalars_route(self, request):
      """Given a tag and single run, return array of ScalarEvents."""
      tag = request.args.get("tag")
      run = request.args.get("run")
      if tag is None or run is None:
          raise errors.InvalidArgumentError(
              "Both run and tag must be specified: tag=%r, run=%r"
              % (tag, run)
          )
  
      ctx = plugin_util.context(request.environ)
      experiment = plugin_util.experiment_id(request.environ)
      output_format = request.args.get("format")
      (body, mime_type) = self.scalars_impl(
          ctx, tag, run, experiment, output_format
      )
      return http_util.Respond(request, body, mime_type)
  
imports: import csv
  import io
  import werkzeug.exceptions
  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.scalar import metadata
label_desc: Use image node_id 9 for calling the ScalarsPlugin obj's underlying member method code with example usage: obj.scalars_route(request) and returns: http_util