class_docstr: Plugin for understanding/debugging model inference.
    
class_docstr_tok: ["Plugin","for","understanding\/debugging","model","inference","."]
docstr: Updates the specified example.
  
  Args:
    request: A request that should contain 'index' and 'example'.
  
  Returns:
    An empty response.
code: def _update_example(self, request):
      """Updates the specified example.
  
      Args:
        request: A request that should contain 'index' and 'example'.
  
      Returns:
        An empty response.
      """
      if request.method != "POST":
          return http_util.Respond(
              request,
              "invalid non-POST request",
              "application/json",
              code=405,
          )
      example_json = request.form["example"]
      index = int(request.form["index"])
      if index >= len(self.examples):
          return http_util.Respond(
              request,
              "invalid index provided",
              "application/json",
              code=400,
          )
      new_example = self.example_class()
      json_format.Parse(example_json, new_example)
      self.examples[index] = new_example
      self.updated_example_indices.add(index)
      self.generate_sprite(
          [ex.SerializeToString() for ex in self.examples]
      )
      return http_util.Respond(request, {}, "application/json")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import io
  import json
  import logging
  import math
  import numpy
  import os
  import werkzeug
  from werkzeug import wrappers
  from six.moves import xrange
  from google.protobuf import json_format
  from grpc.framework.interfaces.face.face import AbortionError
  from werkzeug import wrappers
  import tensorflow
  from tensorboard.backend import http_util
  from tensorboard.plugins import base_plugin
  from utils import common_utils
  from utils import inference_utils
  from utils import platform_utils
label_desc: Use image node_id 11 for calling the WhatIfToolPlugin obj's underlying member method code with example usage: obj._update_example(request) and returns: http_util, http_util, http_util