code: def validate_args(func: Method, *args: Any, **kwargs: Any) -> Method:
      
      signature(func).bind(*args, **kwargs)
      return func
docs: Check if the request's arguments match a function's signature.
  
      Raises TypeError exception if arguments cannot be passed to a function.
  
      Args:
          func: The function to check.
          args: Positional arguments.
          kwargs: Keyword arguments.
  
      Raises:
          TypeError: If the arguments cannot be passed to the function.