code: def rpc_call(self, request, method=None, params=None, **kwargs):
          
          args = []
          kwargs = dict()
          if isinstance(params, dict):
              kwargs.update(params)
          else:
              args = list(as_tuple(params))
  
          method_key = "{0}.{1}".format(self.scheme_name, method)
          if method_key not in self.methods:
              raise AssertionError("Unknown method: {0}".format(method))
          method = self.methods[method_key]
  
          if hasattr(method, 'request'):
              args.insert(0, request)
  
          return method(*args, **kwargs)
docs: Call a RPC method.
  
          return object: a result