docstr: Test converting a PredictResponse to a RegressionResponse.
docstr_tok: ["Test","converting","a","PredictResponse","to","a","RegressionResponse","."]
code: def test_convert_predict_response_regression(self):
      """Test converting a PredictResponse to a RegressionResponse."""
      predict = predict_pb2.PredictResponse()
      output = predict.outputs["scores"]
      dim = output.tensor_shape.dim.add()
      dim.size = 2
      output.float_val.extend([0.1, 0.2])
  
      bundle = inference_utils.ServingBundle(
          "", "", "regression", "", "", True, "", "scores"
      )
      converted = common_utils.convert_predict_response(predict, bundle)
  
      self.assertAlmostEqual(0.1, converted.result.regressions[0].value)
      self.assertAlmostEqual(0.2, converted.result.regressions[1].value)
  
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 21 for calling the InferenceUtilsTest obj's underlying member method code with example usage: obj.test_convert_predict_response_regression() without return types