code: def testSetConfiguration(self):
      config = config_pb2.ConfigProto(
          gpu_options=config_pb2.GPUOptions(
              per_process_gpu_memory_fraction=0.1
          )
      )
  
      # Configure a server using the default local server options.
      server = server_lib.Server.create_local_server(
          config=config, start=False
      )
      self.assertEqual(
          0.1,
          server.server_def.default_session_config.gpu_options.per_process_gpu_memory_fraction,
      )
  
      # Configure a server using an explicit ServerDefd with an
      # overridden config.
      cluster_def = server_lib.ClusterSpec(
          {"localhost": ["localhost:0"]}
      ).as_cluster_def()
      server_def = tensorflow_server_pb2.ServerDef(
          cluster=cluster_def,
          job_name="localhost",
          task_index=0,
          protocol="grpc",
      )
      server = server_lib.Server(server_def, config=config, start=False)
      self.assertEqual(
          0.1,
          server.server_def.default_session_config.gpu_options.per_process_gpu_memory_fraction,
      )
  
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 11 for calling the GrpcServerTest obj's underlying member method code with example usage: obj.testSetConfiguration() without return types