@api_endpoint(decorate=False)
    def method(self, method, params, id_):
        """Invoke a method."""
        try:
            handler = self.api_path_map()[method]
        except __HOLE__:
            raise MeteorError(404, 'Method not found', method)
        try:
            inspect.getcallargs(handler, *params)
        except TypeError as err:
            raise MeteorError(400, '%s' % err)
        result = handler(*params)
        msg = {'msg': 'result', 'id': id_}
        if result is not None:
            msg['result'] = result
        this.send(msg)
dataset/ETHPy150Open django-ddp/django-ddp/dddp/api.py/DDP.method