code: def validate_conversion_arguments(to_wrap):
      
  
      @functools.wraps(to_wrap)
      def wrapper(*args, **kwargs):
          _assert_one_val(*args, **kwargs)
          if kwargs:
              _validate_supported_kwarg(kwargs)
  
          if len(args) == 0 and "primitive" not in kwargs:
              _assert_hexstr_or_text_kwarg_is_text_type(**kwargs)
          return to_wrap(*args, **kwargs)
  
      return wrapper
docs: 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