def validate_conversion_arguments(to_wrap):
@functools.wraps(to_wrap)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>_assert_one_val(*args, **kwargs)<EOL>if kwargs:<EOL><INDENT>_validate_supported_kwarg(kwargs)<EOL><DEDENT>if len(args) == <NUM_LIT:0> and "<STR_LIT>" not in kwargs:<EOL><INDENT>_assert_hexstr_or_text_kwarg_is_text_type(**kwargs)<EOL><DEDENT>return to_wrap(*args, **kwargs)<EOL><DEDENT>return wrapper<EOL>
Validates arguments for conversion functions.
- Only a single argument is present
- Kwarg must be 'primitive' 'hexstr' or 'text'
- If it is 'hexstr' or 'text' that it is a text type