parameters: (self, token_type)
return_statement: return self.type == token_type
docstring: Tests if this token is of the given type.
  
      Args:
        token_type: The type to test for.
  
      Returns:
        True if the type of this token matches the type passed in.
docstring_summary: Tests if this token is of the given type.
docstring_tokens: Tests if this token is of the given type .
function: def IsType(self, token_type):
      """Tests if this token is of the given type.
  
      Args:
        token_type: The type to test for.
  
      Returns:
        True if the type of this token matches the type passed in.
      """
      return self.type == token_type
function_tokens: def IsType ( self , token_type ) : return self . type == token_type