code: def testTimeoutRaisesException(self):
      server = self._cached_server
      with ops.Graph().as_default():
          q = data_flow_ops.FIFOQueue(1, [dtypes.float32])
          blocking_t = q.dequeue()
  
          with session.Session(server.target) as sess:
              with self.assertRaises(errors_impl.DeadlineExceededError):
                  sess.run(
                      blocking_t,
                      options=config_pb2.RunOptions(timeout_in_ms=1000),
                  )
  
          with session.Session(
              server.target, config=self._useRPCConfig()
          ) as sess:
              with self.assertRaises(errors_impl.DeadlineExceededError):
                  sess.run(
                      blocking_t,
                      options=config_pb2.RunOptions(timeout_in_ms=1000),
                  )
  
imports: import time
  import numpy
  from tensorflow.core.protobuf import cluster_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import tensorflow_server_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import input
  from tensorflow.python.training import queue_runner_impl
  from tensorflow.python.training import server_lib
  from tsl.protobuf import rpc_options_pb2
label_desc: Use image node_id 14 for calling the GrpcServerTest obj's underlying member method code with example usage: obj.testTimeoutRaisesException() without return types