class_docstr: Client class for using Courier RPCs.
  
  This provides a convenience wrapper around the CLIF bindings which allows
  calling server methods as if they were class methods.
class_docstr_tok: ["Client","class","for","using","Courier","RPCs",".","This","provides","a","convenience","wrapper","around","the","CLIF","bindings","which","allows","calling","server","methods","as","if","they","were","class","methods","."]
docstr: Build a callable handler for a given method.
  
  Args:
    method: Name of the method to build.
  
  Returns:
    Handler for the method.
docstr_tok: ["Build","a","callable","handler","for","a","given","method",".","Args",":","method",":","Name","of","the","method","to","build",".","Returns",":","Handler","for","the","method","."]
code: def _build_handler(self, method: str):
      """Build a callable handler for a given method.
  
      Args:
        method: Name of the method to build.
  
      Returns:
        Handler for the method.
      """
  
      @exception_handler
      def func(*args, **kwargs):
          deadline = _calculate_deadline(
              self._call_timeout, self._propagate_deadline
          )
  
          return self._client.PyCall(
              method,
              list(args),
              kwargs,
              self._wait_for_ready,
              deadline,
              self._compress,
              self._chunk_tensors,
          )
  
      return func
  
imports: from concurrent import futures
  import datetime
  from typing import List, Optional, Union
  import zoneinfo
  from courier.python import py_client
  import numpy
  from pybind11_abseil.status import StatusNotOk
  from pybind11_abseil.status import StatusNotOk
label_desc: Use image node_id 6 for calling the Client obj's underlying member method code with example usage: obj._build_handler(method) and returns: func, self