code: def create_client(host, port, call_timeout=90000):
      """
      Return a client object that will make calls on a server listening on
      host/port.
  
      The call_timeout value defaults to 90 seconds, and is used for setting the
      timeout for server API calls when using the client created here - if a call
      does not return in call_timeout milliseconds, an exception is raised.
      """
      try:
          return make_client(
              spec.CugraphService,
              host=host,
              port=port,
              timeout=call_timeout,
          )
      except TTransportException:
          # Raise a CugraphServiceError in order to completely encapsulate all
          # Thrift details in this module. If this was not done, callers of this
          # function would have to import thriftpy2 in order to catch the
          # TTransportException, which then leaks thriftpy2.
          #
          # NOTE: normally the CugraphServiceError exception is imported from the
          # cugraph_service_client.exceptions module, but since
          # cugraph_service_client.exceptions.CugraphServiceError is actually
          # defined from the spec in this module, just use it directly from spec.
          #
          # FIXME: may need to have additional thrift exception handlers
          # FIXME: this exception being raised could use more detail
          raise spec.CugraphServiceError(
              "could not create a client session with a cugraph_service server"
          )
  
file_path: cugraph/python/cugraph-service/client/cugraph_service_client/cugraph_service_thrift.py
imports: import io
  import thriftpy2
  from thriftpy2.rpc import make_client
  from thriftpy2.protocol import TBinaryProtocolFactory
  from thriftpy2.server import TSimpleServer
  from thriftpy2.thrift import TProcessor
  from thriftpy2.transport import TBufferedTransportFactory, TServerSocket, TTransportException
label_desc: Use image node_id 2 for calling a global function with example usage: create_client(host, port, call_timeout) and returns: make_client