code: def frame_parser(version=None, kind=0, extensions=None, protocols=None):
      '''Create a new :class:`FrameParser` instance.
  
      :param version: protocol version, the default is 13
      :param kind: the kind of parser, and integer between 0 and 3 (check the
          :class:`FrameParser` documentation for details)
      :param extensions: not used at the moment
      :param protocols: not used at the moment
      :param pyparser: if ``True`` (default ``False``) uses the python frame
          parser implementation rather than the much faster cython
          implementation.
      '''
      version = get_version(version)
      # extensions, protocols
      return FrameParser(version, kind, ProtocolError, close_codes=CLOSE_CODESf frame_parser(version=None, kind=0, extensions=None, protocols=None):
      '''Create a new :class:`FrameParser` instance.
  
      :param version: protocol version, the default is 13
      :param kind: the kind of parser, and integer between 0 and 3 (check the
          :class:`FrameParser` documentation for details)
      :param extensions: not used at the moment
      :param protocols: not used at the moment
      :param pyparser: if ``True`` (default ``False``) uses the python frame
          parser implementation rather than the much faster cython
          implementation.
      '''
      version = get_version(version)
      # extensions, protocols
      return FrameParser(version, kind, ProtocolError, close_codes=CLOSE_CODES)
docs: Create a new :class:`FrameParser` instance.
  
      :param version: protocol version, the default is 13
      :param kind: the kind of parser, and integer between 0 and 3 (check the
          :class:`FrameParser` documentation for details)
      :param extensions: not used at the moment
      :param protocols: not used at the moment
      :param pyparser: if ``True`` (default ``False``) uses the python frame
          parser implementation rather than the much faster cython
          implementation.