docstr: Test making a classification chart with a single point on it.
docstr_tok: ["Test","making","a","classification","chart","with","a","single","point","on","it","."]
code: def test_make_json_formatted_for_single_chart_classification(self):
      """Test making a classification chart with a single point on it."""
      inference_result_proto = (
          classification_pb2.ClassificationResponse()
      )
      classification = (
          inference_result_proto.result.classifications.add()
      )
      inference_class = classification.classes.add()
      inference_class.label = "class_a"
      inference_class.score = 0.7
  
      inference_class = classification.classes.add()
      inference_class.label = "class_b"
      inference_class.score = 0.3
  
      original_feature = inference_utils.OriginalFeatureList(
          "feature_name", [2.0], "float_list"
      )
      mutant_feature = inference_utils.MutantFeatureValue(
          original_feature, index=0, mutant_value=20
      )
  
      jsonable = inference_utils.make_json_formatted_for_single_chart(
          [mutant_feature], inference_result_proto, 0
      )
  
      self.assertEqual(["class_a", "class_b"], sorted(jsonable.keys()))
      self.assertEqual(1, len(jsonable["class_a"]))
      self.assertEqual(20, jsonable["class_a"][0]["step"])
      self.assertAlmostEqual(0.7, jsonable["class_a"][0]["scalar"])
  
      self.assertEqual(1, len(jsonable["class_b"]))
      self.assertEqual(20, jsonable["class_b"][0]["step"])
      self.assertAlmostEqual(0.3, jsonable["class_b"][0]["scalar"])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import numpy
  import tensorflow
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import regression_pb2
  from utils import common_utils
  from utils import inference_utils
  from utils import platform_utils
  from utils import test_utils
label_desc: Use image node_id 19 for calling the InferenceUtilsTest obj's underlying member method code with example usage: obj.test_make_json_formatted_for_single_chart_classification() without return types