code: def check_doc(file_content, spell_checker, spell_check_ret):
      """A documentation checker checks spelling
      of files.
  
      Parameters
      -----------
      content: str
      source text to be checked
  
      spell_checker: enchant.checker.SpellChecker
      Spell checker
  
      spell_check_res: dict
      Spell check result dictionary maps typo word to occurance times.
      """
      spell_checker.set_text(file_content)
      for error in spell_checker:
          if error.word in spell_check_ret:
              spell_check_ret[error.word] += 1
          else:
              spell_check_ret[error.word] = 1
  
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 2 for calling a global function with example usage: check_doc(file_content, spell_checker, spell_check_ret) without return types