class_docstr: Audio Plugin for TensorBoard.
class_docstr_tok: ["Audio","Plugin","for","TensorBoard","."]
docstr: Serve encoded audio data.
docstr_tok: ["Serve","encoded","audio","data","."]
code: def _serve_individual_audio(self, request):
      """Serve encoded audio data."""
      ctx = plugin_util.context(request.environ)
      experiment = plugin_util.experiment_id(request.environ)
      mime_type = request.args["content_type"]
      if mime_type not in _ALLOWED_MIME_TYPES:
          raise errors.InvalidArgumentError(
              "Illegal mime type %r" % mime_type
          )
      blob_key = request.args["blob_key"]
      data = self._data_provider.read_blob(ctx, blob_key=blob_key)
      return http_util.Respond(request, data, mime_type)
  
file_path: tensorboard/tensorboard/plugins/audio/audio_plugin.py
imports: 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.audio import metadata
label_desc: Use image node_id 9 for calling the AudioPlugin obj's underlying member method code with example usage: obj._serve_individual_audio(request) and returns: http_util