class_docstr: Images Plugin for TensorBoard.
docstr: Given a tag and list of runs, serve a list of metadata for images.
  
  Note that the images themselves are not sent; instead, we respond with URLs
  to the images. The frontend should treat these URLs as opaque and should not
  try to parse information about them or generate them itself, as the format
  may change.
  
  Args:
    request: A werkzeug.wrappers.Request object.
  
  Returns:
    A werkzeug.Response application.
docstr_tok: ["Given","a","tag","and","list","of","runs",",","serve","a","list","of","metadata","for","images",".","Note","that","the","images","themselves","are","not","sent",";","instead",",","we","respond","with","URLs","to","the","images",".","The","frontend","should","treat","these","URLs","as","opaque","and","should","not","try","to","parse","information","about","them","or","generate","them","itself",",","as","the","format","may","change",".","Args",":","request",":","A","werkzeug.wrappers.Request","object",".","Returns",":","A","werkzeug.Response","application","."]
code: def _serve_image_metadata(self, request):
      """Given a tag and list of runs, serve a list of metadata for images.
  
      Note that the images themselves are not sent; instead, we respond with URLs
      to the images. The frontend should treat these URLs as opaque and should not
      try to parse information about them or generate them itself, as the format
      may change.
  
      Args:
        request: A werkzeug.wrappers.Request object.
  
      Returns:
        A werkzeug.Response application.
      """
      ctx = plugin_util.context(request.environ)
      experiment = plugin_util.experiment_id(request.environ)
      tag = request.args.get("tag")
      run = request.args.get("run")
      sample = int(request.args.get("sample", 0))
      try:
          response = self._image_response_for_run(
              ctx, experiment, run, tag, sample
          )
      except KeyError:
          return http_util.Respond(
              request, "Invalid run or tag", "text/plain", code=400
          )
      return http_util.Respond(request, response, "application/json")
  
imports: import imghdr
  import urllib.parse
  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.image import metadata
label_desc: Use image node_id 6 for calling the ImagesPlugin obj's underlying member method code with example usage: obj._serve_image_metadata(request) and returns: http_util, http_util