code: def validate_parameters(self, method, args, kwargs):
          
          if hasattr(method, '__code__'):
              try:
                  inspect.getcallargs(method, *args, **kwargs)
              except TypeError:
                  raise exc.InvalidParamsError()
docs: Verify that `*args` and `**kwargs` are appropriate parameters for `method`.
  
          :param method: A callable.
          :param args: List of positional arguments for `method`
          :param kwargs: Keyword arguments for `method`
          :raises ~tinyrpc.exc.InvalidParamsError:
              Raised when the provided arguments are not acceptable for `method`.