code: def get_grammar_res(matches):
      """Filter the grammar check result with ignored check types.
  
      Parameters
      -----------
      matches: list
      Match result of grammar check
  
      Return
      ---------
      ret: list
      Filtered result
      """
      ret = []
      for match in matches:
          lines = str(match).split("\n")
          lines[0] = lines[0].rstrip()
          is_ignored = False
          for entry in GRAMMAR_CHECK_IGNORE:
              if lines[0].endswith(entry):
                  is_ignored = True
                  break
          if not is_ignored:
              ret.append(match)
      return ret
  
file_path: mxnet/tests/nightly/TestDoc/doc_spell_checker.py
imports: from __future__ import print_function
  import os
  import sys
  import re
  from HTMLParser import HTMLParser
  import enchant
  from enchant.checker import SpellChecker
  import grammar_check
  import html2text
label_desc: Use image node_id 1 for calling a global function with example usage: get_grammar_res(matches) and returns: ret