parameters: (method)
return_statement: return new_method
docstring: Wrapper method to check if with_offsets is the only one parameter.
docstring_summary: Wrapper method to check if with_offsets is the only one parameter.
docstring_tokens: Wrapper method to check if with_offsets is the only one parameter .
function: def check_with_offsets(method):
      """Wrapper method to check if with_offsets is the only one parameter."""
  
      @wraps(method)
      def new_method(self, *args, **kwargs):
          [with_offsets], _ = parse_user_args(method, *args, **kwargs)
          if not isinstance(with_offsets, bool):
              raise TypeError("Wrong input type for with_offsets, should be boolean.")
          return method(self, *args, **kwargs)
  
      return new_method
function_tokens: def check_with_offsets ( method ) : @ wraps ( method ) def new_method ( self , * args , * * kwargs ) : [ with_offsets ] , _ = parse_user_args ( method , * args , * * kwargs ) if not isinstance ( with_offsets , bool ) : raise TypeError ( "Wrong input type for with_offsets, should be boolean." ) return method ( self , * args , * * kwargs ) return new_method