code: def skip(parser, kind):
      """If the next token is of the given kind, return true after advancing
      the parser. Otherwise, do not change the parser state
      and throw an error."""
      match = parser.token.kind == kind
      if match:
          advance(parser)
  
      return match
  
imports: from .None import ast
  from ..error import GraphQLSyntaxError
  from .lexer import Lexer, TokenKind, get_token_desc, get_token_kind_desc
  from .source import Source
label_desc: Use image node_id 6 for calling a global function with example usage: skip(parser, kind) and returns: match