class_docstr: Plugin for understanding/debugging model inference.
    
class_docstr_tok: ["Plugin","for","understanding\/debugging","model","inference","."]
docstr: Helper for generating PD plots for a feature.
code: def _infer_mutants_impl(
      self,
      feature_name,
      example_index,
      inference_addresses,
      model_names,
      model_type,
      model_versions,
      model_signatures,
      use_predict,
      predict_input_tensor,
      predict_output_tensor,
      x_min,
      x_max,
      feature_index_pattern,
      custom_predict_fn,
  ):
      """Helper for generating PD plots for a feature."""
      examples = (
          self.examples
          if example_index == -1
          else [self.examples[example_index]]
      )
      serving_bundles = []
      for model_num in xrange(len(inference_addresses)):
          serving_bundles.append(
              inference_utils.ServingBundle(
                  inference_addresses[model_num],
                  model_names[model_num],
                  model_type,
                  model_versions[model_num],
                  model_signatures[model_num],
                  use_predict,
                  predict_input_tensor,
                  predict_output_tensor,
                  custom_predict_fn=custom_predict_fn,
              )
          )
  
      viz_params = inference_utils.VizParams(
          x_min,
          x_max,
          self.examples[0:NUM_EXAMPLES_TO_SCAN],
          NUM_MUTANTS,
          feature_index_pattern,
      )
      return inference_utils.mutant_charts_for_feature(
          examples, feature_name, serving_bundles, viz_params
      )
  
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 19 for calling the WhatIfToolPlugin obj's underlying member method code with example usage: obj._infer_mutants_impl(feature_name, example_index, inference_addresses, model_names, model_type, model_versions, model_signatures, use_predict, predict_input_tensor, predict_output_tensor, x_min, x_max, feature_index_pattern, custom_predict_fn) and returns: inference_utils