class_docstr: Plugin for understanding/debugging model inference.
    
class_docstr_tok: ["Plugin","for","understanding\/debugging","model","inference","."]
docstr: Duplicates the specified example.
  
  Args:
    request: A request that should contain 'index'.
  
  Returns:
    An empty response.
code: def _duplicate_example(self, request):
      """Duplicates the specified example.
  
      Args:
        request: A request that should contain 'index'.
  
      Returns:
        An empty response.
      """
      index = int(request.args.get("index"))
      if index >= len(self.examples):
          return http_util.Respond(
              request,
              "invalid index provided",
              "application/json",
              code=400,
          )
      new_example = self.example_class()
      new_example.CopyFrom(self.examples[index])
      self.examples.append(new_example)
      self.updated_example_indices.add(len(self.examples) - 1)
      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 12 for calling the WhatIfToolPlugin obj's underlying member method code with example usage: obj._duplicate_example(request) and returns: http_util, http_util