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 index.html content.
  
  Note that we opt out of gzipping index.html to write preamble before the
  resource content. This inflates the resource size from 2x kiB to 1xx
  kiB, but we require an ability to flush preamble with the HTML content.
code: def _serve_index(self, index_asset_bytes, request):
      """Serves index.html content.
  
      Note that we opt out of gzipping index.html to write preamble before the
      resource content. This inflates the resource size from 2x kiB to 1xx
      kiB, but we require an ability to flush preamble with the HTML content.
      """
      relpath = (
          posixpath.relpath(self._path_prefix, request.script_root)
          if self._path_prefix
          else "."
      )
      meta_header = (
          '<!doctype html><meta name="tb-relative-root" content="%s/">'
          % relpath
      )
      content = meta_header.encode("utf-8") + index_asset_bytes
      # By passing content_encoding, disallow gzipping. Bloats the content
      # from ~25 kiB to ~120 kiB but reduces CPU usage and avoid 3ms worth of
      # gzipping.
      return http_util.Respond(
          request, content, "text/html", content_encoding="identity"
      )
  
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 8 for calling the CorePlugin obj's underlying member method code with example usage: obj._serve_index(index_asset_bytes, request) and returns: http_util