class_docstr: Core plugin for TensorBoard.
  
  This plugin serves runs, configuration data, and static assets. This
  plugin should always be present in a TensorBoard WSGI application.
class_docstr_tok: ["Core","plugin","for","TensorBoard",".","This","plugin","serves","runs",",","configuration","data",",","and","static","assets",".","This","plugin","should","always","be","present","in","a","TensorBoard","WSGI","application","."]
docstr: Serves a pre-gzipped static asset from the zip file.
code: def _serve_asset(self, path, gzipped_asset_bytes, request):
      """Serves a pre-gzipped static asset from the zip file."""
      mimetype = (
          mimetypes.guess_type(path)[0] or "application/octet-stream"
      )
  
      # Cache JS resources while keep others do not cache.
      expires = (
          JS_CACHE_EXPIRATION_IN_SECS
          if request.args.get("_file_hash") and mimetype in JS_MIMETYPES
          else 0
      )
  
      return http_util.Respond(
          request,
          gzipped_asset_bytes,
          mimetype,
          content_encoding="gzip",
          expires=expires,
      )
  
imports: import argparse
  import functools
  import gzip
  import io
  import mimetypes
  import posixpath
  import zipfile
  from werkzeug import utils
  from werkzeug import wrappers
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.plugins import base_plugin
  from tensorboard.util import grpc_util
  from tensorboard.util import tb_logging
  from tensorboard import version
label_desc: Use image node_id 7 for calling the CorePlugin obj's underlying member method code with example usage: obj._serve_asset(path, gzipped_asset_bytes, request) and returns: http_util