parameters: (method)
return_statement: return new_method
docstring: Wrapper method to check the parameter of WordpieceTokenizer.
docstring_summary: Wrapper method to check the parameter of WordpieceTokenizer.
docstring_tokens: Wrapper method to check the parameter of WordpieceTokenizer .
function: def check_wordpiece_tokenizer(method):
      """Wrapper method to check the parameter of WordpieceTokenizer."""
  
      @wraps(method)
      def new_method(self, *args, **kwargs):
          [vocab, suffix_indicator, max_bytes_per_token, unknown_token, with_offsets], _ = \
              parse_user_args(method, *args, **kwargs)
          if vocab is None:
              raise ValueError("vocab is not provided.")
          if not isinstance(vocab, text.Vocab):
              raise TypeError("Wrong input type for vocab, should be text.Vocab object.")
          if not isinstance(suffix_indicator, str):
              raise TypeError("Wrong input type for suffix_indicator, should be string.")
          if not isinstance(unknown_token, str):
              raise TypeError("Wrong input type for unknown_token, should be string.")
          if not isinstance(with_offsets, bool):
              raise TypeError("Wrong input type for with_offsets, should be boolean.")
          check_uint32(max_bytes_per_token)
          return method(self, *args, **kwargs)
  
      return new_method
function_tokens: def check_wordpiece_tokenizer ( method ) : @ wraps ( method ) def new_method ( self , * args , * * kwargs ) : [ vocab , suffix_indicator , max_bytes_per_token , unknown_token , with_offsets ] , _ = parse_user_args ( method , * args , * * kwargs ) if vocab is None : raise ValueError ( "vocab is not provided." ) if not isinstance ( vocab , text . Vocab ) : raise TypeError ( "Wrong input type for vocab, should be text.Vocab object." ) if not isinstance ( suffix_indicator , str ) : raise TypeError ( "Wrong input type for suffix_indicator, should be string." ) if not isinstance ( unknown_token , str ) : raise TypeError ( "Wrong input type for unknown_token, should be string." ) if not isinstance ( with_offsets , bool ) : raise TypeError ( "Wrong input type for with_offsets, should be boolean." ) check_uint32 ( max_bytes_per_token ) return method ( self , * args , * * kwargs ) return new_method