code: def test_build_standardized_signature_def_regression(self):
      with context.graph_mode():
          input_tensors = {
              "input-1": array_ops.placeholder(
                  dtypes.string, 1, name="input-tensor-1"
              )
          }
          value = array_ops.placeholder(
              dtypes.float32, 1, name="output-tensor-1"
          )
  
          export_output = export_output_lib.RegressionOutput(value)
          actual_signature_def = export_output.as_signature_def(
              input_tensors
          )
  
          expected_signature_def = meta_graph_pb2.SignatureDef()
          shape = tensor_shape_pb2.TensorShapeProto(
              dim=[tensor_shape_pb2.TensorShapeProto.Dim(size=1)]
          )
          dtype_float = types_pb2.DataType.Value("DT_FLOAT")
          dtype_string = types_pb2.DataType.Value("DT_STRING")
          expected_signature_def.inputs[
              signature_constants.REGRESS_INPUTS
          ].CopyFrom(
              meta_graph_pb2.TensorInfo(
                  name="input-tensor-1:0",
                  dtype=dtype_string,
                  tensor_shape=shape,
              )
          )
          expected_signature_def.outputs[
              signature_constants.REGRESS_OUTPUTS
          ].CopyFrom(
              meta_graph_pb2.TensorInfo(
                  name="output-tensor-1:0",
                  dtype=dtype_float,
                  tensor_shape=shape,
              )
          )
  
          expected_signature_def.method_name = (
              signature_constants.REGRESS_METHOD_NAME
          )
          self.assertEqual(actual_signature_def, expected_signature_def)
  
imports: from tensorflow.core.framework import tensor_shape_pb2
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import metrics
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model.model_utils import export_output
label_desc: Use image node_id 5 for calling the ExportOutputTest obj's underlying member method code with example usage: obj.test_build_standardized_signature_def_regression() without return types