code: def testIssueRequests_RaiseRpcErrorIfRpcFailed(self):
      # Prepare client and a side effect.
      request = classification_pb2.ClassificationRequest()
      client = tensorflow_serving_client.TensorFlowServingClient(
          "localhost:1234", "a_model_name"
      )
      self.prediction_stub.Classify.side_effect = grpc.RpcError
  
      # Call.
      with self.assertRaises(error_types.ValidationFailed):
          client.SendRequests([request])
  
imports: from typing import Any, Dict
  from unittest import mock
  import grpc
  import tensorflow
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import types
  from tfx.components.infra_validator.model_server_clients import tensorflow_serving_client
  from google.protobuf import json_format
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import get_model_status_pb2
  from tensorflow_serving.apis import regression_pb2
label_desc: Use image node_id 10 for calling the TensorflowServingClientTest obj's underlying member method code with example usage: obj.testIssueRequests_RaiseRpcErrorIfRpcFailed() without return types