code: def testBuildRequests_NumberOfRequests(self):
      result = request_builder.build_requests(
          model_name="foo",
          model=self._model,
          examples=self._examples,
          request_spec=_make_request_spec(
              {
                  "tensorflow_serving": {
                      "signature_names": [
                          "classification",
                          "regression",
                      ]
                  },
                  "split_name": "eval",
                  "num_examples": 3,
              }
          ),
      )
  
      # Total 6 requests (3 requests for each signature)
      self.assertEqual(len(result), 6)
      self.assertEqual(
          len(
              [
                  r
                  for r in result
                  if r.model_spec.signature_name == "classification"
              ]
          ),
          3,
      )
      self.assertEqual(
          len(
              [
                  r
                  for r in result
                  if r.model_spec.signature_name == "regression"
              ]
          ),
          3,
      )
  
imports: import os
  from typing import Any, Dict
  from unittest import mock
  import tensorflow
  from tfx.components.infra_validator import request_builder
  from tfx.proto import infra_validator_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.utils import path_utils
  from google.protobuf import json_format
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saved_model_pb2
  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 4 for calling the TestBuildRequests obj's underlying member method code with example usage: obj.testBuildRequests_NumberOfRequests() without return types