class_docstr: RequestBuilder for TF Serving RPC requests.
  
  There are three kinds of request the builder can make:
  -   ClassificationRequest
  -   RegressionRequest
  -   PredictRequest
  
  Types of request to build is determined by inspecting SavedModel and getting
  SignatureDef from it. What user can configure is the signature names to use.
  
  To build a ClassificationRequest or a RegressionRequest, logical format of
  the record should be TF_EXAMPLE.
  
  To build a PredictRequest, its corresponding SignatureDef should have a single
  input argument that accepts serialized record inputs. Its logical format does
  not matter as long as user have a correct parsing logic.
class_docstr_tok: ["RequestBuilder","for","TF","Serving","RPC","requests",".","There","are","three","kinds","of","request","the","builder","can","make",":","-","ClassificationRequest","-","RegressionRequest","-","PredictRequest","Types","of","request","to","build","is","determined","by","inspecting","SavedModel","and","getting","SignatureDef","from","it",".","What","user","can","configure","is","the","signature","names","to","use",".","To","build","a","ClassificationRequest","or","a","RegressionRequest",",","logical","format","of","the","record","should","be","TF_EXAMPLE",".","To","build","a","PredictRequest",",","its","corresponding","SignatureDef","should","have","a","single","input","argument","that","accepts","serialized","record","inputs",".","Its","logical","format","does","not","matter","as","long","as","user","have","a","correct","parsing","logic","."]
code: def __init__(
      self, model_name: str, signatures: Mapping[str, _SignatureDef]
  ):
      super().__init__()
      self._model_name = model_name
      self._signatures = signatures
      self._examples = []
  
imports: import abc
  import os
  from typing import Any, Iterable, List, Mapping, Optional
  from absl import logging
  import tensorflow
  from tfx import types
  from tfx.components.infra_validator import types
  from tfx.components.util import examples_utils
  from tfx.components.util import tfxio_utils
  from tfx.dsl.io import fileio
  from tfx.proto import example_gen_pb2
  from tfx.proto import infra_validator_pb2
  from tfx.types import artifact_utils
  from tfx.utils import path_utils
  from tfx_bsl.tfxio import dataset_options
  from tensorflow.python.saved_model import loader_impl
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import regression_pb2
label_desc: Use image node_id 1 to create a new _TFServingRpcRequestBuilder object from inherited base classes: _BaseRequestBuilder with example: obj = _TFServingRpcRequestBuilder(model_name, signatures)