code: def get_handler(self, request):
          
          try:
              f = self._json_rpc_methods[request.method]
  
          except (AttributeError, KeyError):  # pragma no coverage
              raise RPCMethodError("Received invalid method '{}'".format(request.method))
  
          return f
docs: Get callable from JSON RPC request
  
          :param RPCRequest request: JSON RPC request
          :return: Method
          :rtype: callable