code: def test_convert_for_regress(self):
      prediction_log = text_format.Parse(
          """
        regress_log {
          request {
            input {
              example_list {
                examples {
                  features {
                    feature: {
                      key: "regress_input"
                      value: { bytes_list: { value: "feature" } }
                    }
                  }
                }
              }
            }
          }
          response {
            result {
              regressions {
                value: 0.7
              }
            }
          }
        }
      """,
          prediction_log_pb2.PredictionLog(),
      )
  
      output_example_spec = text_format.Parse(
          """
          output_columns_spec {
            regress_output {
              value_column: 'regress_value'
            }
          }
      """,
          bulk_inferrer_pb2.OutputExampleSpec(),
      )
      expected_example = text_format.Parse(
          """
          features {
              feature: {
                key: "regress_input"
                value: { bytes_list: { value: "feature" } }
              }
              feature: {
                key: "regress_value"
                value: { float_list: { value: 0.7 } }
              }
            }
      """,
          tf.train.Example(),
      )
      self.assertProtoEquals(
          expected_example,
          utils.convert(prediction_log, output_example_spec),
      )
  
file_path: tfx/tfx/components/bulk_inferrer/prediction_to_example_utils_test.py
imports: from absl.testing import parameterized
  import tensorflow
  from tfx.components.bulk_inferrer import prediction_to_example_utils
  from tfx.proto import bulk_inferrer_pb2
  from google.protobuf import text_format
  from tensorflow_serving.apis import prediction_log_pb2
label_desc: Use image node_id 2 for calling the PredictionToExampleUtilsTest obj's underlying member method code with example usage: obj.test_convert_for_regress() without return types